From 1e206875ee0a8a71ad41dcc5971e63fc8c54325d Mon Sep 17 00:00:00 2001 From: saxon Date: Tue, 7 Aug 2018 12:28:06 +0930 Subject: [PATCH] Changed name of sendConnectPacket to C_SendConnectPacket --- rtmp/rtmp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index da14d4e6..f6ad194c 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -747,7 +747,7 @@ func C_RTMP_Connect1(r *C.RTMP, cp *C.RTMPPacket) int { log.Println("... handshaked...") } //if C.SendConnectPacket(r, cp) == 0 { - if sendConnectPacket(r, cp) == 0 { + if C_SendConnectPacket(r, cp) == 0 { log.Println("RTMP connect failed!") return 0 } @@ -937,7 +937,7 @@ func C_SendBytesReceived(r *C.RTMP) int { return rtmpSendPacket(r, &packet, 0) } -func sendConnectPacket(r *C.RTMP, cp *C.RTMPPacket) int { +func C_SendConnectPacket(r *C.RTMP, cp *C.RTMPPacket) int { var packet C.RTMPPacket var pbuf [4096]byte pend := (*byte)(unsafe.Pointer(incBytePtr(unsafe.Pointer(&pbuf[0]),