mirror of https://bitbucket.org/ausocean/av.git
rtmp: remove unused fields
reported by honnef.co/go/tools/cmd/unused rtmp_headers.go:145:2: field sb_ssl is unused (U1000) rtmp_headers.go:167:2: field subscribepath is unused (U1000) rtmp_headers.go:168:2: field usherToken is unused (U1000) rtmp_headers.go:170:2: field pubUser is unused (U1000) rtmp_headers.go:171:2: field pubPasswd is unused (U1000) rtmp_headers.go:173:2: field edepth is unused (U1000) rtmp_headers.go:175:2: field stopTime is unused (U1000) rtmp_headers.go:180:2: field pFlags is unused (U1000) rtmp_headers.go:189:2: field bufpos is unused (U1000) rtmp_headers.go:190:2: field buflen is unused (U1000) rtmp_headers.go:191:2: field timestamp is unused (U1000) rtmp_headers.go:195:2: field initialFrameType is unused (U1000) rtmp_headers.go:197:2: field metaHeader is unused (U1000) rtmp_headers.go:198:2: field initialFrame is unused (U1000) rtmp_headers.go:199:2: field nMetaHeaderSize is unused (U1000) rtmp_headers.go:200:2: field nInitialFrameSize is unused (U1000) rtmp_headers.go:223:2: field m_mediaStamp is unused (U1000) rtmp_headers.go:224:2: field m_pauseStamp is unused (U1000) rtmp_headers.go:245:2: field m_polling is unused (U1000) rtmp_headers.go:248:2: field m_clientID is unused (U1000)
This commit is contained in:
parent
fed685b107
commit
f0462ee511
|
@ -142,7 +142,6 @@ type C_RTMPSockBuf struct {
|
||||||
sb_start *byte
|
sb_start *byte
|
||||||
sb_buf [RTMP_BUFFER_CACHE_SIZE]byte // port const
|
sb_buf [RTMP_BUFFER_CACHE_SIZE]byte // port const
|
||||||
sb_timedout int32
|
sb_timedout int32
|
||||||
sb_ssl uintptr
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// RTMPPacket_IsReady(a)
|
// RTMPPacket_IsReady(a)
|
||||||
|
@ -154,50 +153,35 @@ func C_RTMPPacket_IsReady(p *C_RTMPPacket) bool {
|
||||||
// typedef struct RTMP_LNK
|
// typedef struct RTMP_LNK
|
||||||
// rtmp.h +144
|
// rtmp.h +144
|
||||||
type C_RTMP_LNK struct {
|
type C_RTMP_LNK struct {
|
||||||
hostname string
|
hostname string
|
||||||
sockshost string
|
sockshost string
|
||||||
playpath0 string
|
playpath0 string
|
||||||
playpath string
|
playpath string
|
||||||
tcUrl string
|
tcUrl string
|
||||||
swfUrl string
|
swfUrl string
|
||||||
pageUrl string
|
pageUrl string
|
||||||
app string
|
app string
|
||||||
auth string
|
auth string
|
||||||
flashVer string
|
flashVer string
|
||||||
subscribepath string
|
token string
|
||||||
usherToken string
|
extras C_AMFObject
|
||||||
token string
|
seekTime int32
|
||||||
pubUser string
|
lFlags int32
|
||||||
pubPasswd string
|
swfAge int32
|
||||||
extras C_AMFObject
|
protocol int32
|
||||||
edepth int32
|
timeout int32
|
||||||
seekTime int32
|
socksport uint16
|
||||||
stopTime int32
|
port uint16
|
||||||
lFlags int32
|
|
||||||
swfAge int32
|
|
||||||
protocol int32
|
|
||||||
timeout int32
|
|
||||||
pFlags int32
|
|
||||||
socksport uint16
|
|
||||||
port uint16
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// typedef struct RTMP_READ
|
// typedef struct RTMP_READ
|
||||||
// rtmp.h +200
|
// rtmp.h +200
|
||||||
type C_RTMP_READ struct {
|
type C_RTMP_READ struct {
|
||||||
buf *byte
|
buf *byte
|
||||||
bufpos *byte
|
|
||||||
buflen uint
|
|
||||||
timestamp uint32
|
|
||||||
dataType uint8
|
dataType uint8
|
||||||
flags uint8
|
flags uint8
|
||||||
status int8
|
status int8
|
||||||
initialFrameType uint8
|
|
||||||
nResumeTS uint32
|
nResumeTS uint32
|
||||||
metaHeader *byte
|
|
||||||
initialFrame *byte
|
|
||||||
nMetaHeaderSize uint32
|
|
||||||
nInitialFrameSize uint32
|
|
||||||
nIgnoredFrameCounter uint32
|
nIgnoredFrameCounter uint32
|
||||||
nIgnoredFlvFrameCounter uint32
|
nIgnoredFlvFrameCounter uint32
|
||||||
}
|
}
|
||||||
|
@ -220,8 +204,6 @@ type C_RTMP struct {
|
||||||
m_nBufferMS int32
|
m_nBufferMS int32
|
||||||
m_stream_id int32
|
m_stream_id int32
|
||||||
m_mediaChannel int32
|
m_mediaChannel int32
|
||||||
m_mediaStamp uint32
|
|
||||||
m_pauseStamp uint32
|
|
||||||
m_pausing int32
|
m_pausing int32
|
||||||
m_nServerBW int32
|
m_nServerBW int32
|
||||||
m_nClientBW int32
|
m_nClientBW int32
|
||||||
|
@ -242,10 +224,8 @@ type C_RTMP struct {
|
||||||
m_fEncoding float64
|
m_fEncoding float64
|
||||||
m_fDuration float64
|
m_fDuration float64
|
||||||
m_msgCounter int32
|
m_msgCounter int32
|
||||||
m_polling int32
|
|
||||||
m_resplen int32
|
m_resplen int32
|
||||||
m_unackd int32
|
m_unackd int32
|
||||||
m_clientID string
|
|
||||||
m_read C_RTMP_READ
|
m_read C_RTMP_READ
|
||||||
m_write C_RTMPPacket
|
m_write C_RTMPPacket
|
||||||
m_sb C_RTMPSockBuf
|
m_sb C_RTMPSockBuf
|
||||||
|
|
Loading…
Reference in New Issue