About to test

This commit is contained in:
saxon 2018-07-12 01:02:46 +09:30
parent 46cff84322
commit 18cdcde149
1 changed files with 1 additions and 3 deletions

View File

@ -108,8 +108,8 @@ func byteSliceToCArr(buf []byte) *C.char {
func (s *session) rtmpWrite(r *C.RTMP, buf []byte) int {
var pkt *C.RTMPPacket = &r.m_write
size := len(buf)
var enc unsafe.Pointer
size := len(buf)
s2 := size
var ret, num int
@ -186,8 +186,6 @@ func (s *session) rtmpWrite(r *C.RTMP, buf []byte) int {
pkt.m_nBytesRead += C.uint(num)
s2 -= num
//buf += num
buf = buf[num:]
if pkt.m_nBytesRead == pkt.m_nBodySize {