diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index de67219e..adfa81f3 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -658,14 +658,15 @@ func rtmpConnect(r *C.RTMP, cp *C.RTMPPacket) int { return 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 } r.m_bSendCounter = 1 - return int(rtmpConnect1(r, cp)) + //return int(rtmpConnect1(r, cp)) + return int(C.RTMP_Connect1(r, cp)) } func rtmpConnect0(r *C.RTMP, service *C.sockaddr) int {