mirror of
https://github.com/livekit/livekit.git
synced 2026-10-23 00:02:53 +00:00
Fixed panics with nil stats (#517)
This commit is contained in:
1 parent
4d1cc82c89
commit
d498cccc05
3 files changed
+9
No files matched your search
@@ -677,6 +677,9 @@ func (b *Buffer) GetStats() *StreamStatsWithLayers {
|
||||
}
|
||||
|
||||
stats := b.rtpStats.ToProto()
|
||||
if stats == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
layers := make(map[int]LayerStats)
|
||||
layers[0] = LayerStats{
|
||||
|
||||
Reference in new issue
Block a user