Prevent multiple resume notifications on track (#334)

* Prevent multiple resume notifications on track

When returning previous allocation as is, reset change to none.
Ideally, would like to have change as a separate return and not in last
allocation. But, also prefer to have last allocation state. For now,
resetting change.

* log bandwidth estimate only on decrease
This commit is contained in:
Raja Subramanian
2022-01-12 23:19:56 +05:30
committed by GitHub
parent 5cdea4e15d
commit 017ed13338
3 changed files with 15 additions and 2 deletions
+1 -1
View File
@@ -227,7 +227,7 @@ func TestForwarderAllocate(t *testing.T) {
}
expectedResult = VideoAllocation{
state: VideoAllocationStateAwaitingMeasurement,
change: VideoStreamingChangeNone,
change: VideoStreamingChangeResuming,
bandwidthRequested: 0,
bandwidthDelta: 0,
availableLayers: []uint16{0},