Using Saxon's setup URL func, tested and working

This commit is contained in:
saxon 2018-07-20 17:50:32 +09:30
parent 3b25a0f254
commit d3b00475ae
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) {
rtmp = rtmpAlloc() rtmp = rtmpAlloc()
rtmpInit(rtmp) rtmpInit(rtmp)
rtmp.Link.timeout = connect_timeout rtmp.Link.timeout = connect_timeout
if C.RTMP_SetupURL(rtmp, (*C.char)(unsafe.Pointer(goStrToCStr(u)))) == 0 { if rtmpSetupUrl(rtmp, u) == 0 {
C.RTMP_Close(rtmp) C.RTMP_Close(rtmp)
C.RTMP_Free(rtmp) C.RTMP_Free(rtmp)
return nil, errors.New("rtmp startSession: Failed to setup URL!") return nil, errors.New("rtmp startSession: Failed to setup URL!")