Using my rtmpAlloc - tested and working

This commit is contained in:
saxon 2018-07-28 15:20:30 +09:30
parent 69ff0bbad5
commit e7ba480770
1 changed files with 2 additions and 2 deletions

View File

@ -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