diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 94059a54..5c0077ce 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -845,8 +845,8 @@ func readN(r *C.RTMP, buffer *byte, n int) int { r.m_nBytesIn += C.int(nRead) 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 { + if sendBytesReceived(r) == 0 { return 0 } }