rtmp: remove read type

This commit is contained in:
Dan Kortschak 2018-09-12 11:04:33 +09:30
parent 4bf78b7e97
commit 26e3bd264a
2 changed files with 0 additions and 25 deletions

View File

@ -1841,18 +1841,6 @@ func C_CloseInternal(r *C_RTMP, reconnect int32) {
r.m_nBytesIn = 0
r.m_nBytesInSent = 0
if r.m_read.flags&RTMP_READ_HEADER != 0 {
//C.free(unsafe.Pointer(r.m_read.buf))
r.m_read.buf = nil
}
r.m_read.dataType = 0
r.m_read.flags = 0
r.m_read.status = 0
r.m_read.nResumeTS = 0
r.m_read.nIgnoredFrameCounter = 0
r.m_read.nIgnoredFlvFrameCounter = 0
r.m_write.m_nBytesRead = 0
C_RTMPPacket_Free(&r.m_write)

View File

@ -174,18 +174,6 @@ type C_RTMP_LNK struct {
port uint16
}
// typedef struct RTMP_READ
// rtmp.h +200
type C_RTMP_READ struct {
buf *byte
dataType uint8
flags uint8
status int8
nResumeTS uint32
nIgnoredFrameCounter uint32
nIgnoredFlvFrameCounter uint32
}
// typedef struct RTMPMethod
// rtmp.h +231
type C_RTMP_METHOD struct {
@ -226,7 +214,6 @@ type C_RTMP struct {
m_msgCounter int32
m_resplen int32
m_unackd int32
m_read C_RTMP_READ
m_write C_RTMPPacket
m_sb C_RTMPSockBuf
Link C_RTMP_LNK