From 71be64631b0fccbb231f8c2b29be89773eb33096 Mon Sep 17 00:00:00 2001 From: saxon Date: Sat, 28 Jul 2018 15:32:38 +0930 Subject: [PATCH] Using my rtmpConnect0 - 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 adfa81f3..6fa97a73 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -658,8 +658,8 @@ func rtmpConnect(r *C.RTMP, cp *C.RTMPPacket) int { return 0 } } - if C.RTMP_Connect0(r, (*C.sockaddr)(unsafe.Pointer(&service))) == 0 { - //if rtmpConnect0(r, (*C.sockaddr)(unsafe.Pointer(&service))) == 0 { + //if C.RTMP_Connect0(r, (*C.sockaddr)(unsafe.Pointer(&service))) == 0 { + if rtmpConnect0(r, (*C.sockaddr)(unsafe.Pointer(&service))) == 0 { return 0 }