diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 86ba404a..8fde240a 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -398,7 +398,7 @@ func (s *session) Write(data []byte) (int, error) { return 0, Err(1) } - // if rtmpWrite(s.rtmp, data) == 0 { + // if C_RTMP_Write(s.rtmp, data) == 0 { if C.RTMP_Write(s.rtmp, (*C.char)(unsafe.Pointer(&data[0])), C.int(len(data))) == 0 { return 0, Err(2) } @@ -1515,8 +1515,8 @@ func endSession(rtmp *C.RTMP) uint32 { return 0 } -// rtmpWrite writes data to the current rtmp connection encapsulated by r -func rtmpWrite(r *C.RTMP, data []byte) int { +// C_RTMP_Write writes data to the current rtmp connection encapsulated by r +func C_RTMP_Write(r *C.RTMP, data []byte) int { buf := sliceToPtr(data) // TODO: port RTMPPacket var pkt = &r.m_write