Using my sendPacket - getting seg fault

This commit is contained in:
saxon 2018-07-17 01:30:25 +09:30
parent 825a5f6f29
commit 09682cd6a0
1 changed files with 1 additions and 1 deletions

View File

@ -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