mirror of https://bitbucket.org/ausocean/av.git
Changed name of sockBufSend to C_SockBufSend
This commit is contained in:
parent
5ffd3ddee6
commit
f7559152d9
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue