mirror of https://bitbucket.org/ausocean/av.git
My rtmpConnect now working after using C funcs inside
This commit is contained in:
parent
fc53e45505
commit
603ac6dfc7
|
@ -658,14 +658,15 @@ func rtmpConnect(r *C.RTMP, cp *C.RTMPPacket) int {
|
|||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
if rtmpConnect0(r, (*C.sockaddr)(unsafe.Pointer(&service))) == 0 {
|
||||
if C.RTMP_Connect0(r, (*C.sockaddr)(unsafe.Pointer(&service))) == 0 {
|
||||
//if rtmpConnect0(r, (*C.sockaddr)(unsafe.Pointer(&service))) == 0 {
|
||||
return 0
|
||||
}
|
||||
|
||||
r.m_bSendCounter = 1
|
||||
|
||||
return int(rtmpConnect1(r, cp))
|
||||
//return int(rtmpConnect1(r, cp))
|
||||
return int(C.RTMP_Connect1(r, cp))
|
||||
}
|
||||
|
||||
func rtmpConnect0(r *C.RTMP, service *C.sockaddr) int {
|
||||
|
|
Loading…
Reference in New Issue