Correcting the check for the return code produced by
AudioProcessing::ProcessReverseStream(). Before the change, only -1 was considered to be an error. Allthough the error code scheme for AudioProcessing definitely could be discussed, the current scheme have many error codes that differ from -1 and thus were not caught by the old code. BUG=webrtc:5237 Review URL: https://codereview.webrtc.org/1515073004 Cr-Commit-Position: refs/heads/master@{#11003}
This commit is contained in:
@ -550,7 +550,7 @@ OutputMixer::DoOperationsOnCombinedSignal(bool feed_data_to_apm)
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void OutputMixer::APMProcessReverseStream() {
|
||||
if (_audioProcessingModulePtr->ProcessReverseStream(&_audioFrame) == -1) {
|
||||
if (_audioProcessingModulePtr->ProcessReverseStream(&_audioFrame) != 0) {
|
||||
WEBRTC_TRACE(kTraceError, kTraceVoice, VoEId(_instanceId, -1),
|
||||
"AudioProcessingModule::ProcessReverseStream() => error");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user