Plug a couple of holes in stream transitions. (#1905)
* Plug a couple of holes in stream transitions. 1. Missed negative sign meant stealing bits from other tracks was not working. 2. When a track change (mute, unmute, subscription change) cannot be allocated, explicitly pause so that stream state update happens. Refactor stream state update a bit to make it a bit cleaner. * correct comment
This commit is contained in:
@@ -847,7 +847,7 @@ func TestForwarderProvisionalAllocateGetBestWeightedTransition(t *testing.T) {
|
||||
expectedTransition := VideoTransition{
|
||||
From: f.TargetLayer(),
|
||||
To: buffer.VideoLayer{Spatial: 2, Temporal: 0},
|
||||
BandwidthDelta: 2,
|
||||
BandwidthDelta: -2,
|
||||
}
|
||||
transition := f.ProvisionalAllocateGetBestWeightedTransition()
|
||||
require.Equal(t, expectedTransition, transition)
|
||||
|
||||
Reference in New Issue
Block a user