Removed functions we don't need

This commit is contained in:
saxon 2018-07-20 21:27:28 +09:30
parent c01ea8323c
commit 2d02b77fc1
1 changed files with 0 additions and 4 deletions

View File

@ -364,16 +364,12 @@ func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) {
rtmpInit(rtmp) rtmpInit(rtmp)
rtmp.Link.timeout = connect_timeout rtmp.Link.timeout = connect_timeout
if rtmpSetupUrl(rtmp, u) == 0 { if rtmpSetupUrl(rtmp, u) == 0 {
C.RTMP_Close(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!")
} }
C.RTMP_EnableWrite(rtmp) C.RTMP_EnableWrite(rtmp)
C.RTMP_SetBufferMS(rtmp, 3600*1000) C.RTMP_SetBufferMS(rtmp, 3600*1000)
if C.RTMP_Connect(rtmp, nil) == 0 { if C.RTMP_Connect(rtmp, nil) == 0 {
C.RTMP_Close(rtmp)
C.RTMP_Free(rtmp)
return nil, errors.New("rtmp startSession: Failed to connect!") return nil, errors.New("rtmp startSession: Failed to connect!")
} }