Files
livekit/pkg/sfu/streamtracker
Konstantinos Papazacharopoulos 7352c1d670 fix(sfu): don't reset a stream tracker that is unpaused while not paused (#5191)
Since #4453, StreamTrackerManager.UpdateTrackInfo calls
SetPaused(trackInfo.Muted) on every track info update, not only when
the mute state changes. StreamTracker.SetPaused(false) reset the tracker
even when it was not paused, so any track info update of an unmuted
video track (video size, codec info, simulcast layer SSRCs,
UpdateLocalVideoTrack) marked every live layer stopped, removed it from
the available layers, and zeroed its bitrate until the next packet and
bitrate report.

SetPaused now returns early when the paused state does not change, as
StreamTrackerDependencyDescriptor.SetPaused already does. A new tracker
starts unpaused in its reset state, so the SetPaused call in AddTracker
behaves the same.
2026-11-12 01:01:45 +05:30
..
2023-07-27 16:43:19 -07:00