mirror of https://bitbucket.org/ausocean/av.git
Removed functions we don't need
This commit is contained in:
parent
c01ea8323c
commit
2d02b77fc1
|
@ -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!")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue