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