From f0c5dd7bc36f7e9f0c6dbea05f4b3ce5e3aae070 Mon Sep 17 00:00:00 2001 From: saxon Date: Fri, 10 Aug 2018 22:30:22 +0930 Subject: [PATCH] Using my C_RTMP_ConnectStream func - 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 5509998e..c87e16d7 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -466,8 +466,8 @@ func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) { } // TODO: port this - // if C_RTMP_ConnectStream(rtmp, 0) == 0 { - if C.RTMP_ConnectStream(rtmp, 0) == 0 { + if C_RTMP_ConnectStream(rtmp, 0) == 0 { + //if C.RTMP_ConnectStream(rtmp, 0) == 0 { //C.RTMP_Close(rtmp) //C.RTMP_Free(rtmp) return nil, errors.New("rtmp startSession: Failed to connect stream!")