From d886d43139a2a57d6a17a41bb09f49625ded963d Mon Sep 17 00:00:00 2001 From: saxon Date: Sun, 29 Jul 2018 09:43:19 +0930 Subject: [PATCH] Using my amfEncodeString in a second place - tested and working --- rtmp/rtmp.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 4c8c3f67..e5ada2d9 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -1083,9 +1083,9 @@ func sendConnectPacket(r *C.RTMP, cp *C.RTMPPacket) int { if enc == nil { return 0 } - enc = (*byte)(unsafe.Pointer(C.AMF_EncodeString((*C.char)(unsafe.Pointer(enc)), - (*C.char)(unsafe.Pointer(pend)), &r.Link.auth))) - //enc = amfEncodeString(enc, (*byte)(pend), &r.Link.auth) + //enc = (*byte)(unsafe.Pointer(C.AMF_EncodeString((*C.char)(unsafe.Pointer(enc)), + //(*C.char)(unsafe.Pointer(pend)), &r.Link.auth))) + enc = amfEncodeString(enc, (*byte)(pend), &r.Link.auth) if enc == nil { return 0 }