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]),