Using my amfEncodeString in a second place - tested and working

This commit is contained in:
saxon 2018-07-29 09:43:19 +09:30
parent c7549d4aa1
commit d886d43139
1 changed files with 3 additions and 3 deletions

View File

@ -1083,9 +1083,9 @@ func sendConnectPacket(r *C.RTMP, cp *C.RTMPPacket) int {
if enc == nil { if enc == nil {
return 0 return 0
} }
enc = (*byte)(unsafe.Pointer(C.AMF_EncodeString((*C.char)(unsafe.Pointer(enc)), //enc = (*byte)(unsafe.Pointer(C.AMF_EncodeString((*C.char)(unsafe.Pointer(enc)),
(*C.char)(unsafe.Pointer(pend)), &r.Link.auth))) //(*C.char)(unsafe.Pointer(pend)), &r.Link.auth)))
//enc = amfEncodeString(enc, (*byte)(pend), &r.Link.auth) enc = amfEncodeString(enc, (*byte)(pend), &r.Link.auth)
if enc == nil { if enc == nil {
return 0 return 0
} }