diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 1523c3d5..be08f895 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -240,7 +240,7 @@ func rtmpWrite(r *C.RTMP, data []byte) int { buf = incBytePtr(buf, num) if pkt.m_nBytesRead == pkt.m_nBodySize { // TODO: Port this - ret = int(C.RTMP_SendPacket(r, pkt, 0)) + ret = sendPacket(r, pkt, 0) // TODO: Port this C.RTMPPacket_Free(pkt) pkt.m_nBytesRead = 0