mirror of
https://github.com/livekit/livekit.git
synced 2026-05-14 11:55:14 +00:00
ignore PLI requests for non-video (#4196)
* ignore PLI requests for non-video * under lock
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user