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!")