mirror of https://bitbucket.org/ausocean/av.git
Removed redundant passing of byte length
This commit is contained in:
parent
9d186f51bb
commit
bf59e8adfc
|
@ -86,16 +86,16 @@ func (s *session) Open() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (s *session) rtmpWrite(rtmp *C.RTMP, data []byte, dataLength uint ) bool {
|
||||
func (s *session) rtmpWrite(rtmp *C.RTMP, data []byte) bool {
|
||||
|
||||
}
|
||||
|
||||
func (s *session) writeFrame(data []byte, dataLength uint) uint {
|
||||
func (s *session) writeFrame(data []byte) uint {
|
||||
if !C.RTMP_IsConnected(rtmp) {
|
||||
return 1
|
||||
}
|
||||
// !C.RTMP_Write(s.rtmp, (const char*)(*C.char)(unsafe.Pointer(&data[0])), C.uint(dataLength))
|
||||
if rtmpWrite(s.rtmp, data, dataLength) {
|
||||
if rtmpWrite(s.rtmp, data) {
|
||||
return 2
|
||||
}
|
||||
return 0
|
||||
|
|
Loading…
Reference in New Issue