Make sure updated pacing factor is applied immediately.
Bug: chromium:771346 Change-Id: I2d7116f0278a053b97944eccdb2d5f33ad9a5d84 Reviewed-on: https://webrtc-review.googlesource.com/6281 Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20323}
This commit is contained in:
parent
6bf70d20da
commit
5fc130b065
@ -359,6 +359,9 @@ void PacedSender::UpdateBudgetWithBytesSent(size_t bytes_sent) {
|
||||
void PacedSender::SetPacingFactor(float pacing_factor) {
|
||||
rtc::CritScope cs(&critsect_);
|
||||
pacing_factor_ = pacing_factor;
|
||||
// Make sure new padding factor is applied immediately, otherwise we need to
|
||||
// wait for the send bitrate estimate to be updated before this takes effect.
|
||||
SetEstimatedBitrate(estimated_bitrate_bps_);
|
||||
}
|
||||
|
||||
void PacedSender::SetQueueTimeLimit(int limit_ms) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user