From 8f7cc7e77dbea3133080e1ebb746df469ace1481 Mon Sep 17 00:00:00 2001 From: peah Date: Fri, 14 Oct 2016 03:23:32 -0700 Subject: [PATCH] This CL corrects the emptying of the render queues for the AEC and AECM when these become full to also work when not in debug mode. BUG=webrtc:6530 Review-Url: https://codereview.webrtc.org/2419023002 Cr-Commit-Position: refs/heads/master@{#14637} --- webrtc/modules/audio_processing/echo_cancellation_impl.cc | 3 ++- webrtc/modules/audio_processing/echo_control_mobile_impl.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/webrtc/modules/audio_processing/echo_cancellation_impl.cc b/webrtc/modules/audio_processing/echo_cancellation_impl.cc index 65b4c36407..18c815dc00 100644 --- a/webrtc/modules/audio_processing/echo_cancellation_impl.cc +++ b/webrtc/modules/audio_processing/echo_cancellation_impl.cc @@ -166,7 +166,8 @@ int EchoCancellationImpl::ProcessRenderAudio(const AudioBuffer* audio) { ReadQueuedRenderData(); // Retry the insert (should always work). - RTC_DCHECK_EQ(render_signal_queue_->Insert(&render_queue_buffer_), true); + bool result = render_signal_queue_->Insert(&render_queue_buffer_); + RTC_DCHECK(result); } return AudioProcessing::kNoError; diff --git a/webrtc/modules/audio_processing/echo_control_mobile_impl.cc b/webrtc/modules/audio_processing/echo_control_mobile_impl.cc index d8eb7a38f3..0c62648e70 100644 --- a/webrtc/modules/audio_processing/echo_control_mobile_impl.cc +++ b/webrtc/modules/audio_processing/echo_control_mobile_impl.cc @@ -174,7 +174,8 @@ int EchoControlMobileImpl::ProcessRenderAudio(const AudioBuffer* audio) { ReadQueuedRenderData(); // Retry the insert (should always work). - RTC_DCHECK_EQ(render_signal_queue_->Insert(&render_queue_buffer_), true); + bool result = render_signal_queue_->Insert(&render_queue_buffer_); + RTC_DCHECK(result); } return AudioProcessing::kNoError;