Index: webrtc/call/bitrate_allocator.cc |
diff --git a/webrtc/call/bitrate_allocator.cc b/webrtc/call/bitrate_allocator.cc |
index c3568df34c65a4595ccea2eb154b493cdeb73e57..9aecc6e3e8458059ed99f683b9994f198275db45 100644 |
--- a/webrtc/call/bitrate_allocator.cc |
+++ b/webrtc/call/bitrate_allocator.cc |
@@ -68,14 +68,14 @@ BitrateAllocator::~BitrateAllocator() { |
void BitrateAllocator::OnNetworkChanged(uint32_t target_bitrate_bps, |
uint8_t fraction_loss, |
int64_t rtt, |
- int64_t probing_interval_ms) { |
+ int64_t bwe_period_ms) { |
RTC_DCHECK_CALLED_SEQUENTIALLY(&sequenced_checker_); |
last_bitrate_bps_ = target_bitrate_bps; |
last_non_zero_bitrate_bps_ = |
target_bitrate_bps > 0 ? target_bitrate_bps : last_non_zero_bitrate_bps_; |
last_fraction_loss_ = fraction_loss; |
last_rtt_ = rtt; |
- last_probing_interval_ms_ = probing_interval_ms; |
+ last_bwe_period_ms_ = bwe_period_ms; |
// Periodically log the incoming BWE. |
int64_t now = clock_->TimeInMilliseconds(); |
@@ -90,7 +90,7 @@ void BitrateAllocator::OnNetworkChanged(uint32_t target_bitrate_bps, |
uint32_t allocated_bitrate = allocation[config.observer]; |
uint32_t protection_bitrate = config.observer->OnBitrateUpdated( |
allocated_bitrate, last_fraction_loss_, last_rtt_, |
- last_probing_interval_ms_); |
+ last_bwe_period_ms_); |
if (allocated_bitrate == 0 && config.allocated_bitrate_bps > 0) { |
if (target_bitrate_bps > 0) |
@@ -148,7 +148,7 @@ void BitrateAllocator::AddObserver(BitrateAllocatorObserver* observer, |
uint32_t allocated_bitrate = allocation[config.observer]; |
uint32_t protection_bitrate = config.observer->OnBitrateUpdated( |
allocated_bitrate, last_fraction_loss_, last_rtt_, |
- last_probing_interval_ms_); |
+ last_bwe_period_ms_); |
config.allocated_bitrate_bps = allocated_bitrate; |
if (allocated_bitrate > 0) |
config.media_ratio = MediaRatio(allocated_bitrate, protection_bitrate); |
@@ -159,7 +159,7 @@ void BitrateAllocator::AddObserver(BitrateAllocatorObserver* observer, |
// observer know that it can not produce frames. |
allocation = AllocateBitrates(last_non_zero_bitrate_bps_); |
observer->OnBitrateUpdated(0, last_fraction_loss_, last_rtt_, |
- last_probing_interval_ms_); |
+ last_bwe_period_ms_); |
} |
UpdateAllocationLimits(); |
} |