mirror of https://bitbucket.org/ausocean/av.git
changed name of rtmpWrite to C_RTMP_Write
This commit is contained in:
parent
4a3ff1f4b9
commit
342a575587
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue