mirror of https://bitbucket.org/ausocean/av.git
Using my sendPacket - getting seg fault
This commit is contained in:
parent
825a5f6f29
commit
09682cd6a0
|
@ -240,7 +240,7 @@ func rtmpWrite(r *C.RTMP, data []byte) int {
|
||||||
buf = incBytePtr(buf, num)
|
buf = incBytePtr(buf, num)
|
||||||
if pkt.m_nBytesRead == pkt.m_nBodySize {
|
if pkt.m_nBytesRead == pkt.m_nBodySize {
|
||||||
// TODO: Port this
|
// TODO: Port this
|
||||||
ret = int(C.RTMP_SendPacket(r, pkt, 0))
|
ret = sendPacket(r, pkt, 0)
|
||||||
// TODO: Port this
|
// TODO: Port this
|
||||||
C.RTMPPacket_Free(pkt)
|
C.RTMPPacket_Free(pkt)
|
||||||
pkt.m_nBytesRead = 0
|
pkt.m_nBytesRead = 0
|
||||||
|
|
Loading…
Reference in New Issue