Do not re-pause a paused track. (#2037)

This commit is contained in:
Raja Subramanian
2023-09-06 08:27:16 +05:30
committed by GitHub
parent 9b9298b927
commit c122c20f49
2 changed files with 10 additions and 4 deletions
+2 -2
View File
@@ -883,8 +883,8 @@ func (s *StreamAllocator) allocateTrack(track *Track) {
return
}
// already streaming at some layer and transition is not requesting any change, i. e. BandwidthDelta == 0
if transition.From.IsValid() && transition.BandwidthDelta == 0 {
// a no-op transition
if transition.From == transition.To {
return
}