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) {
|
func (b *BufferBase) SendPLI(force bool) {
|
||||||
b.RLock()
|
b.RLock()
|
||||||
|
if b.codecType != webrtc.RTPCodecTypeVideo {
|
||||||
|
b.RUnlock()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
rtpStats := b.rtpStats
|
rtpStats := b.rtpStats
|
||||||
pliThrottle := b.pliThrottle
|
pliThrottle := b.pliThrottle
|
||||||
b.RUnlock()
|
b.RUnlock()
|
||||||
|
|||||||
Reference in New Issue
Block a user