diff --git a/pkg/sfu/buffer/buffer_base.go b/pkg/sfu/buffer/buffer_base.go index d2056f43b..722b509b9 100644 --- a/pkg/sfu/buffer/buffer_base.go +++ b/pkg/sfu/buffer/buffer_base.go @@ -542,6 +542,11 @@ func (b *BufferBase) SetPLIThrottle(duration int64) { func (b *BufferBase) SendPLI(force bool) { b.RLock() + if b.codecType != webrtc.RTPCodecTypeVideo { + b.RUnlock() + return + } + rtpStats := b.rtpStats pliThrottle := b.pliThrottle b.RUnlock()