Remove redundant check in channel_receive.cc.
Change-Id: I13400dd74582b875423d8a2d7bb840eee207cf2c
Bug: webrtc:10285
Change-Id: I13400dd74582b875423d8a2d7bb840eee207cf2c
Reviewed-on: https://webrtc-review.googlesource.com/c/121340
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Ruslan Burakov <kuddai@google.com>
Cr-Commit-Position: refs/heads/master@{#26525}
diff --git a/audio/channel_receive.cc b/audio/channel_receive.cc
index fbd92f6..9c8aaa6 100644
--- a/audio/channel_receive.cc
+++ b/audio/channel_receive.cc
@@ -849,12 +849,8 @@
RTC_DCHECK(module_process_thread_checker_.CalledOnValidThread());
// Limit to range accepted by both VoE and ACM, so we're at least getting as
// close as possible, instead of failing.
- delay_ms = rtc::SafeClamp(delay_ms, 0, 10000);
- if ((delay_ms < kVoiceEngineMinMinPlayoutDelayMs) ||
- (delay_ms > kVoiceEngineMaxMinPlayoutDelayMs)) {
- RTC_DLOG(LS_ERROR) << "SetMinimumPlayoutDelay() invalid min delay";
- return;
- }
+ delay_ms = rtc::SafeClamp(delay_ms, kVoiceEngineMinMinPlayoutDelayMs,
+ kVoiceEngineMaxMinPlayoutDelayMs);
if (audio_coding_->SetMinimumPlayoutDelay(delay_ms) != 0) {
RTC_DLOG(LS_ERROR)
<< "SetMinimumPlayoutDelay() failed to set min playout delay";