From f7559152d93735db7ff626a566e8011e4395d5ec Mon Sep 17 00:00:00 2001 From: saxon Date: Tue, 7 Aug 2018 12:41:49 +0930 Subject: [PATCH] Changed name of sockBufSend to C_SockBufSend --- rtmp/rtmp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 18334f36..6c41da3a 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -1873,7 +1873,7 @@ func C_WriteN(r *C.RTMP, buffer unsafe.Pointer, n int) int { var nBytes int // TODO: port this if necessary - nBytes = int(sockBufSend(&r.m_sb, (*byte)(ptr), int32(n))) + nBytes = int(C_SockBufSend(&r.m_sb, (*byte)(ptr), int32(n))) if nBytes < 0 { if debugMode { @@ -1909,7 +1909,7 @@ var RTMPT_cmds = []string{ "close", } -func sockBufSend(sb *C.RTMPSockBuf, buf *byte, l int32) int32 { +func C_SockBufSend(sb *C.RTMPSockBuf, buf *byte, l int32) int32 { return int32(C.send(sb.sb_socket, unsafe.Pointer(buf), C.size_t(l), 0)) }