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}
This commit is contained in:
Ruslan Burakov 2019-02-03 22:21:02 +01:00 committed by Commit Bot
parent 0d28972d8f
commit 432c833e9e

View File

@ -849,12 +849,8 @@ void ChannelReceive::SetMinimumPlayoutDelay(int delay_ms) {
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";