mirror of https://bitbucket.org/ausocean/av.git
using my amfDecodeNumber in rtmpSendPacket - tested and working
This commit is contained in:
parent
c7640ada0e
commit
0fc985d1c5
|
@ -1493,8 +1493,8 @@ func rtmpSendPacket(r *C.RTMP, packet *C.RTMPPacket, queue int) int {
|
|||
if queue != 0 {
|
||||
var txn int
|
||||
ptr = incBytePtr(ptr, 3+int(method.av_len))
|
||||
txn = int(C.AMF_DecodeNumber((*C.char)(ptr)))
|
||||
//txn = int(amfDecodeNumber((*byte)(ptr)))
|
||||
//txn = int(C.AMF_DecodeNumber((*C.char)(ptr)))
|
||||
txn = int(amfDecodeNumber((*byte)(ptr)))
|
||||
// TODO: port this
|
||||
C.AV_queue(&r.m_methodCalls, (*C.int)(unsafe.Pointer(&r.m_numCalls)), &method,
|
||||
C.int(txn))
|
||||
|
|
Loading…
Reference in New Issue