From bf59e8adfc97b15b6d4892d852e58ea3a701cba0 Mon Sep 17 00:00:00 2001 From: Saxon Milton Date: Thu, 28 Jun 2018 12:51:23 +0930 Subject: [PATCH] Removed redundant passing of byte length --- rtmp/rtmp.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index ea6b0278..b49234b3 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -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