Index: webrtc/modules/audio_processing/echo_cancellation_impl.cc |
diff --git a/webrtc/modules/audio_processing/echo_cancellation_impl.cc b/webrtc/modules/audio_processing/echo_cancellation_impl.cc |
index e28f1278398b631a411e0826047183d127d304f1..fd3e1bf01c15528ebecf9d39b5631bbd44d89c6e 100644 |
--- a/webrtc/modules/audio_processing/echo_cancellation_impl.cc |
+++ b/webrtc/modules/audio_processing/echo_cancellation_impl.cc |
@@ -337,14 +337,7 @@ void EchoCancellationImpl::SetExtraOptions(const Config& config) { |
} |
void* EchoCancellationImpl::CreateHandle() const { |
- Handle* handle = NULL; |
- if (WebRtcAec_Create(&handle) != apm_->kNoError) { |
- handle = NULL; |
- } else { |
- assert(handle != NULL); |
- } |
- |
- return handle; |
+ return WebRtcAec_Create(); |
} |
void EchoCancellationImpl::DestroyHandle(void* handle) const { |