diff --git a/rtsp/rtsp-session.go b/rtsp/rtsp-session.go index ed9b077c..6225fe38 100644 --- a/rtsp/rtsp-session.go +++ b/rtsp/rtsp-session.go @@ -249,11 +249,7 @@ func (session *Session) Start() { Buffer: rtpBuf, } default: - logger.Printf("unknow rtp pack type, %v", pack.Type) - continue - } - if pack == nil { - logger.Printf("session tcp got nil rtp pack") + logger.Printf("unknow rtp pack type, %v", channel) continue } session.InBytes += rtpLen + 4