mirror of https://bitbucket.org/ausocean/av.git
using my writeN tested and worked, but still using C readN
This commit is contained in:
parent
55d96bb2f1
commit
159a21c73a
|
@ -733,7 +733,6 @@ func rtmpConnect1(r *C.RTMP, cp *C.RTMPPacket) int {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: complete this
|
// TODO: complete this
|
||||||
|
|
||||||
func handShake(r *C.RTMP, FP9HandShake int32) int {
|
func handShake(r *C.RTMP, FP9HandShake int32) int {
|
||||||
var bMatch int
|
var bMatch int
|
||||||
//uptime := uint32(0)
|
//uptime := uint32(0)
|
||||||
|
@ -764,7 +763,8 @@ func handShake(r *C.RTMP, FP9HandShake int32) int {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: port this
|
// TODO: port this
|
||||||
if readN(r, (*byte)(unsafe.Pointer(&typ)), 1) != 1 {
|
if C.ReadN(r, (*C.char)(unsafe.Pointer(&typ)), 1) != 1 {
|
||||||
|
// if readN(r, (*byte)(unsafe.Pointer(&typ)), 1) != 1 {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue