using my amfDecodeNumber in rtmpSendPacket - tested and working

This commit is contained in:
saxon 2018-07-29 10:57:06 +09:30
parent c7640ada0e
commit 0fc985d1c5
1 changed files with 2 additions and 2 deletions

View File

@ -1493,8 +1493,8 @@ func rtmpSendPacket(r *C.RTMP, packet *C.RTMPPacket, queue int) int {
if queue != 0 { if queue != 0 {
var txn int var txn int
ptr = incBytePtr(ptr, 3+int(method.av_len)) ptr = incBytePtr(ptr, 3+int(method.av_len))
txn = int(C.AMF_DecodeNumber((*C.char)(ptr))) //txn = int(C.AMF_DecodeNumber((*C.char)(ptr)))
//txn = int(amfDecodeNumber((*byte)(ptr))) txn = int(amfDecodeNumber((*byte)(ptr)))
// TODO: port this // TODO: port this
C.AV_queue(&r.m_methodCalls, (*C.int)(unsafe.Pointer(&r.m_numCalls)), &method, C.AV_queue(&r.m_methodCalls, (*C.int)(unsafe.Pointer(&r.m_numCalls)), &method,
C.int(txn)) C.int(txn))