ignore PLI requests for non-video (#4196)

* ignore PLI requests for non-video

* under lock
This commit is contained in:
Raja Subramanian
2025-12-26 12:26:22 +05:30
committed by GitHub
parent 2510b9462e
commit 599002f890
+5
View File
@@ -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()