diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 804484e5..da14d4e6 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -867,7 +867,7 @@ func C_ReadN(r *C.RTMP, buffer *byte, n int) int { if r.m_bSendCounter != 0 && r.m_nBytesIn > (r.m_nBytesInSent+ r.m_nClientBW/10) { //if C.SendBytesReceived(r) == 0 { - if sendBytesReceived(r) == 0 { + if C_SendBytesReceived(r) == 0 { return 0 } } @@ -912,7 +912,7 @@ func C_RTMP_SockBuffFill(sb *C.RTMPSockBuf) int { return nBytes } -func sendBytesReceived(r *C.RTMP) int { +func C_SendBytesReceived(r *C.RTMP) int { var packet C.RTMPPacket var pbuf [256]byte pend := (*byte)(incBytePtr(unsafe.Pointer(&pbuf[0]), 256))