From 93104c153964f224d83a2e30a8e741e7053bfd64 Mon Sep 17 00:00:00 2001 From: saxon Date: Sat, 28 Jul 2018 16:37:15 +0930 Subject: [PATCH] Using my sendBytesRecieved func - tested and working --- rtmp/rtmp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } }