mirror of https://bitbucket.org/ausocean/av.git
Using my C_RTMP_Write func - tested and working
This commit is contained in:
parent
44187cdc22
commit
9fcdfe6367
|
@ -424,8 +424,8 @@ func (s *session) Write(data []byte) (int, error) {
|
||||||
return 0, Err(1)
|
return 0, Err(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// if C_RTMP_Write(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 {
|
//if C.RTMP_Write(s.rtmp, (*C.char)(unsafe.Pointer(&data[0])), C.int(len(data))) == 0 {
|
||||||
return 0, Err(2)
|
return 0, Err(2)
|
||||||
}
|
}
|
||||||
return len(data), nil
|
return len(data), nil
|
||||||
|
|
Loading…
Reference in New Issue