From e7ba4807701c21974f71f11b791f0da8fa9ffd26 Mon Sep 17 00:00:00 2001 From: saxon Date: Sat, 28 Jul 2018 15:20:30 +0930 Subject: [PATCH] Using my rtmpAlloc - 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 fa1dd842..02bcf106 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -393,8 +393,8 @@ func rtmpIsConnected(r *C.RTMP) int { func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) { connect_timeout := C.int(timeout) - // rtmp = rtmpAlloc() - rtmp = C.RTMP_Alloc() + rtmp = rtmpAlloc() + //rtmp = C.RTMP_Alloc() // rtmpInit(rtmp) C.RTMP_Init(rtmp) rtmp.Link.timeout = connect_timeout