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 }