From b37df00d5f0763fcea5ce8b8e1ce565deb6e334a Mon Sep 17 00:00:00 2001 From: mask-pp Date: Mon, 3 Aug 2020 19:39:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rtsp/rtsp-session.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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