| Index: webrtc/modules/audio_processing/ns/noise_suppression_x.c
|
| diff --git a/webrtc/modules/audio_processing/ns/noise_suppression_x.c b/webrtc/modules/audio_processing/ns/noise_suppression_x.c
|
| index a3b6d0f3bde524aa68949ead52b7bde418e500cb..150fe608dde1f351f4bb451a5562ad5873e66ef1 100644
|
| --- a/webrtc/modules/audio_processing/ns/noise_suppression_x.c
|
| +++ b/webrtc/modules/audio_processing/ns/noise_suppression_x.c
|
| @@ -16,19 +16,12 @@
|
| #include "webrtc/modules/audio_processing/ns/nsx_core.h"
|
| #include "webrtc/modules/audio_processing/ns/nsx_defines.h"
|
|
|
| -int WebRtcNsx_Create(NsxHandle** nsxInst) {
|
| +NsxHandle* WebRtcNsx_Create() {
|
| NoiseSuppressionFixedC* self = malloc(sizeof(NoiseSuppressionFixedC));
|
| - *nsxInst = (NsxHandle*)self;
|
| -
|
| - if (self != NULL) {
|
| - WebRtcSpl_Init();
|
| - self->real_fft = NULL;
|
| - self->initFlag = 0;
|
| - return 0;
|
| - } else {
|
| - return -1;
|
| - }
|
| -
|
| + WebRtcSpl_Init();
|
| + self->real_fft = NULL;
|
| + self->initFlag = 0;
|
| + return (NsxHandle*)self;
|
| }
|
|
|
| void WebRtcNsx_Free(NsxHandle* nsxInst) {
|
|
|