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)) }