mirror of https://bitbucket.org/ausocean/av.git
Removed references to C.RTMP_Free().
This commit is contained in:
parent
6133032a05
commit
309680f019
|
@ -149,7 +149,6 @@ func startSession(rtmp *C_RTMP, u string, timeout uint) (*C_RTMP, error) {
|
|||
err := C_RTMP_SetupURL(rtmp, u)
|
||||
if err != nil {
|
||||
C_RTMP_Close(rtmp)
|
||||
//C.RTMP_Free(rtmp)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
@ -158,14 +157,12 @@ func startSession(rtmp *C_RTMP, u string, timeout uint) (*C_RTMP, error) {
|
|||
err = C_RTMP_Connect(rtmp, nil)
|
||||
if err != nil {
|
||||
C_RTMP_Close(rtmp)
|
||||
//C.RTMP_Free(rtmp)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
err = C_RTMP_ConnectStream(rtmp, 0)
|
||||
if err != nil {
|
||||
C_RTMP_Close(rtmp)
|
||||
//C.RTMP_Free(rtmp)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
@ -178,7 +175,6 @@ func endSession(rtmp *C_RTMP) uint32 {
|
|||
}
|
||||
|
||||
C_RTMP_Close(rtmp)
|
||||
//C.RTMP_Free(rtmp)
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue