From 0bac388843968a6a507bc85bfe981054a5fac031 Mon Sep 17 00:00:00 2001 From: saxon Date: Sat, 28 Jul 2018 15:22:15 +0930 Subject: [PATCH] Using my rtmpInit - tested and working --- rtmp/rtmp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 02bcf106..e0f2a442 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -395,8 +395,8 @@ func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) { connect_timeout := C.int(timeout) rtmp = rtmpAlloc() //rtmp = C.RTMP_Alloc() - // rtmpInit(rtmp) - C.RTMP_Init(rtmp) + rtmpInit(rtmp) + //C.RTMP_Init(rtmp) rtmp.Link.timeout = connect_timeout // if rtmpSetupUrl(rtmp, u) == 0 { if C.RTMP_SetupURL(rtmp, C.CString(u)) == 0 {