mirror of https://bitbucket.org/ausocean/av.git
Changed name of rtmpPacketIsReady to C_RTMP_PacketIsReady
This commit is contained in:
parent
beb59bf8e7
commit
49a54bccf8
|
@ -1268,7 +1268,7 @@ func C_RTMP_ConnectStream(r *C.RTMP, seekTime int32) int {
|
||||||
C.RTMP_ReadPacket(r, &packet) != 0 {
|
C.RTMP_ReadPacket(r, &packet) != 0 {
|
||||||
|
|
||||||
// TODO: port is ready
|
// TODO: port is ready
|
||||||
if rtmpPacketIsReady(&packet) != 0 {
|
if C_RTMP_PacketIsReady(&packet) != 0 {
|
||||||
if packet.m_nBodySize == 0 {
|
if packet.m_nBodySize == 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -1498,7 +1498,7 @@ func rtmpReadPacket(r *C.RTMP, packet *C.RTMPPacket) int32 {
|
||||||
return TRUE
|
return TRUE
|
||||||
}
|
}
|
||||||
|
|
||||||
func rtmpPacketIsReady(p *C.RTMPPacket) int {
|
func C_RTMP_PacketIsReady(p *C.RTMPPacket) int {
|
||||||
if p.m_nBytesRead == p.m_nBodySize {
|
if p.m_nBytesRead == p.m_nBodySize {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue