Changed name of sendConnectPacket to C_SendConnectPacket

This commit is contained in:
saxon 2018-08-07 12:28:06 +09:30
parent dd83eda2e9
commit 1e206875ee
1 changed files with 2 additions and 2 deletions

View File

@ -747,7 +747,7 @@ func C_RTMP_Connect1(r *C.RTMP, cp *C.RTMPPacket) int {
log.Println("... handshaked...") log.Println("... handshaked...")
} }
//if C.SendConnectPacket(r, cp) == 0 { //if C.SendConnectPacket(r, cp) == 0 {
if sendConnectPacket(r, cp) == 0 { if C_SendConnectPacket(r, cp) == 0 {
log.Println("RTMP connect failed!") log.Println("RTMP connect failed!")
return 0 return 0
} }
@ -937,7 +937,7 @@ func C_SendBytesReceived(r *C.RTMP) int {
return rtmpSendPacket(r, &packet, 0) 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 packet C.RTMPPacket
var pbuf [4096]byte var pbuf [4096]byte
pend := (*byte)(unsafe.Pointer(incBytePtr(unsafe.Pointer(&pbuf[0]), pend := (*byte)(unsafe.Pointer(incBytePtr(unsafe.Pointer(&pbuf[0]),