diff --git a/rtsp/pusher.go b/rtsp/pusher.go index 7e96169e..3366654f 100644 --- a/rtsp/pusher.go +++ b/rtsp/pusher.go @@ -229,7 +229,7 @@ func (pusher *Pusher) Start() { continue } - if pusher.gopCacheEnable { + if pusher.gopCacheEnable && pack.Type == RTP_TYPE_VIDEO { pusher.gopCacheLock.Lock() if strings.EqualFold(pusher.VCodec(), "h264") { if rtp := ParseRTP(pack.Buffer.Bytes()); rtp != nil && rtp.IsKeyframeStart() {