Rate limit the low bandwidth / min bitrate warning to once every 10 seconds.

R=terelius@webrtc.org

Review URL: https://codereview.webrtc.org/1320763003

Cr-Commit-Position: refs/heads/master@{#9855}
This commit is contained in:
stefan
2015-09-04 03:04:56 -07:00
committed by Commit bot
parent be9b7b6881
commit b6b0b9268e
4 changed files with 23 additions and 13 deletions

View File

@ -132,7 +132,8 @@ void BitrateControllerImpl::SetReservedBitrate(uint32_t reserved_bitrate_bps) {
void BitrateControllerImpl::OnReceivedEstimatedBitrate(uint32_t bitrate) {
{
rtc::CritScope cs(&critsect_);
bandwidth_estimation_.UpdateReceiverEstimate(bitrate);
bandwidth_estimation_.UpdateReceiverEstimate(clock_->TimeInMilliseconds(),
bitrate);
}
MaybeTriggerOnNetworkChanged();
}