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 {