changed name of rtmpWrite to C_RTMP_Write

This commit is contained in:
saxon 2018-08-07 12:32:23 +09:30
parent 4a3ff1f4b9
commit 342a575587
1 changed files with 3 additions and 3 deletions

View File

@ -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