diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 435c2d1a..fc41abaf 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -229,14 +229,20 @@ func rtmpWrite(r *C.RTMP, data []byte) int { return size + s2 } -/* + func sendPacket(r *C.RTMP, pkt *C.RTMPPacket, queue int) int { const prevPacket *C.RTMPPacket last := 0 - var nSize, hSize, cSize int - var + var nSize, hSize, cSize, nChunkSize, tlen int + var header, hptr, hend, buffer *C.char + var goHbuf [RTMP_MAX_HEADER_SIZE]byte + var hbuf = (*C.char)(unsafe.Pointer(&goHbuf[0])) + var c C.char + var t int32 + var tbuf *C.char = nil + var toff *C.char = nil } -*/ + // Close terminates the rtmp connection func (s *session) Close() error {