Set pacer target bitrate to max of bwe and bitrate allocation.
ChannelGroup::OnNetWorkChanged() should not configure the pacer to send a lower bitrate than what bitrate_allocator has actually allocated (may be the case if min_bitrate is enforced, for instance). BUG= Review URL: https://codereview.webrtc.org/1413663004 Cr-Commit-Position: refs/heads/master@{#10519}
This commit is contained in:
@ -31,9 +31,12 @@ class BitrateAllocator {
|
||||
public:
|
||||
BitrateAllocator();
|
||||
|
||||
void OnNetworkChanged(uint32_t target_bitrate,
|
||||
uint8_t fraction_loss,
|
||||
int64_t rtt);
|
||||
// Allocate target_bitrate across the registered BitrateObservers.
|
||||
// Returns actual bitrate allocated (might be higher than target_bitrate if
|
||||
// for instance EnforceMinBitrate() is enabled.
|
||||
uint32_t OnNetworkChanged(uint32_t target_bitrate,
|
||||
uint8_t fraction_loss,
|
||||
int64_t rtt);
|
||||
|
||||
// Set the start and max send bitrate used by the bandwidth management.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user