From 6978e73aeeb9df5ad84b0f24be8b4e0064ebcbdd Mon Sep 17 00:00:00 2001 From: saxon Date: Sun, 29 Jul 2018 10:27:46 +0930 Subject: [PATCH] Using my sendPacket func in sendConnectPacket - tested and working --- rtmp/rtmp.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 717e758f..2c6a25eb 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -944,8 +944,8 @@ func sendConnectPacket(r *C.RTMP, cp *C.RTMPPacket) int { var enc *byte if cp != nil { - //return rtmpSendPacket(r, cp, 1) - return int(C.RTMP_SendPacket(r, cp, 1)) + return rtmpSendPacket(r, cp, 1) + //return int(C.RTMP_SendPacket(r, cp, 1)) } packet.m_nChannel = 0x03 @@ -1107,8 +1107,8 @@ func sendConnectPacket(r *C.RTMP, cp *C.RTMPPacket) int { packet.m_nBodySize = C.uint32_t(int(uintptr(decBytePtr(unsafe.Pointer(enc), int(uintptr(unsafe.Pointer(packet.m_body))))))) - return int(C.RTMP_SendPacket(r, &packet, 1)) - //return rtmpSendPacket(r, &packet, 1) + //return int(C.RTMP_SendPacket(r, &packet, 1)) + return rtmpSendPacket(r, &packet, 1) } func rtmpConnectStream(r *C.RTMP, seekTime int32) int {