Fixed panics with nil stats (#517)
This commit is contained in:
@@ -420,6 +420,9 @@ func (w *WebRTCReceiver) GetTrackStats() map[uint32]*buffer.StreamStatsWithLayer
|
||||
}
|
||||
|
||||
sswl := buff.GetStats()
|
||||
if sswl == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
// if simulcast, patch buffer stats with correct layer
|
||||
if w.isSimulcast {
|
||||
|
||||
Reference in New Issue
Block a user