mirror of https://bitbucket.org/ausocean/av.git
USing my readN again - tested and working
This commit is contained in:
parent
76ced667b9
commit
fc897a509d
|
@ -795,8 +795,8 @@ func handShake(r *C.RTMP, FP9HandShake int32) int {
|
||||||
log.Println("handShake: type mismatch: client sent %v, server sent: %v",
|
log.Println("handShake: type mismatch: client sent %v, server sent: %v",
|
||||||
clientbuf[0], typ)
|
clientbuf[0], typ)
|
||||||
}
|
}
|
||||||
//if readN(r, (*byte)(unsafe.Pointer(&serversig[0])), RTMP_SIG_SIZE) != RTMP_SIG_SIZE {
|
if readN(r, (*byte)(unsafe.Pointer(&serversig[0])), RTMP_SIG_SIZE) != RTMP_SIG_SIZE {
|
||||||
if C.ReadN(r, (*C.char)(unsafe.Pointer(&serversig[0])), RTMP_SIG_SIZE) != RTMP_SIG_SIZE {
|
//if C.ReadN(r, (*C.char)(unsafe.Pointer(&serversig[0])), RTMP_SIG_SIZE) != RTMP_SIG_SIZE {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue