Fix NetEq minimum and maximum delay always reset on acm creation.

Bug: webrtc:10305
Change-Id: Iecc55c3b4bb8416e2fd0cf26532b43dcd70a7cca
Reviewed-on: https://webrtc-review.googlesource.com/c/122280
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Commit-Queue: Ruslan Burakov <kuddai@google.com>
Cr-Commit-Position: refs/heads/master@{#26771}
This commit is contained in:
Ruslan Burakov
2019-02-20 13:41:59 +01:00
committed by Commit Bot
parent 8073db6d89
commit b35baccd6f
4 changed files with 7 additions and 6 deletions

View File

@ -85,7 +85,7 @@ DelayManager::DelayManager(size_t max_packets_in_buffer,
last_seq_no_(0),
last_timestamp_(0),
minimum_delay_ms_(base_minimum_delay_ms_),
maximum_delay_ms_(target_level_),
maximum_delay_ms_(0),
iat_cumulative_sum_(0),
max_iat_cumulative_sum_(0),
peak_detector_(*peak_detector),
@ -96,7 +96,6 @@ DelayManager::DelayManager(size_t max_packets_in_buffer,
enable_rtx_handling_(enable_rtx_handling) {
assert(peak_detector); // Should never be NULL.
RTC_DCHECK_GE(base_minimum_delay_ms_, 0);
RTC_DCHECK_LE(minimum_delay_ms_, maximum_delay_ms_);
Reset();
}