Remove unused with move to RTPStats (#516)

This commit is contained in:
Raja Subramanian
2022-03-15 23:01:37 +05:30
committed by GitHub
parent c0d9937125
commit 4d1cc82c89
3 changed files with 3 additions and 70 deletions
-17
View File
@@ -397,23 +397,6 @@ func (w *WebRTCReceiver) SendPLI(layer int32) {
buff.SendPLI()
}
func (w *WebRTCReceiver) LastPLI() time.Time {
var lastPLI time.Time
w.bufferMu.RLock()
for _, b := range w.buffers {
if b == nil {
continue
}
layerLastPLI := b.LastPLI()
if lastPLI.IsZero() || layerLastPLI.After(lastPLI) {
lastPLI = layerLastPLI
}
}
w.bufferMu.RUnlock()
return lastPLI
}
func (w *WebRTCReceiver) SetRTCPCh(ch chan []rtcp.Packet) {
w.rtcpCh = ch
}