From 09682cd6a04a70e10098285616853d6d2436461e Mon Sep 17 00:00:00 2001 From: saxon Date: Tue, 17 Jul 2018 01:30:25 +0930 Subject: [PATCH] Using my sendPacket - getting seg fault --- rtmp/rtmp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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