Using my C_RTMP_ConnectStream func - tested and working

This commit is contained in:
saxon 2018-08-10 22:30:22 +09:30
parent 9fcdfe6367
commit f0c5dd7bc3
1 changed files with 2 additions and 2 deletions

View File

@ -466,8 +466,8 @@ func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) {
} }
// TODO: port this // TODO: port this
// if C_RTMP_ConnectStream(rtmp, 0) == 0 { if C_RTMP_ConnectStream(rtmp, 0) == 0 {
if C.RTMP_ConnectStream(rtmp, 0) == 0 { //if C.RTMP_ConnectStream(rtmp, 0) == 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 connect stream!") return nil, errors.New("rtmp startSession: Failed to connect stream!")