| Index: webrtc/modules/audio_processing/gain_control_impl.cc
|
| diff --git a/webrtc/modules/audio_processing/gain_control_impl.cc b/webrtc/modules/audio_processing/gain_control_impl.cc
|
| index 5f301c134516b42567adfb319c8c9239ebdfb957..398cf5c5fd71ead8c17d91c9e68de88ee1730c5e 100644
|
| --- a/webrtc/modules/audio_processing/gain_control_impl.cc
|
| +++ b/webrtc/modules/audio_processing/gain_control_impl.cc
|
| @@ -301,14 +301,7 @@ int GainControlImpl::Initialize() {
|
| }
|
|
|
| void* GainControlImpl::CreateHandle() const {
|
| - Handle* handle = NULL;
|
| - if (WebRtcAgc_Create(&handle) != apm_->kNoError) {
|
| - handle = NULL;
|
| - } else {
|
| - assert(handle != NULL);
|
| - }
|
| -
|
| - return handle;
|
| + return WebRtcAgc_Create();
|
| }
|
|
|
| void GainControlImpl::DestroyHandle(void* handle) const {
|
|
|