diff options
author | junky <junky@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-10 03:04:25 +0000 |
---|---|---|
committer | junky <junky@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-10 03:04:25 +0000 |
commit | a3a5ab6ce0f37789cd77a9b5d968678be5da9391 (patch) | |
tree | d3da3cc48d366ef6927db9ba93c284f3e149d428 /funcs/func_speex.c | |
parent | 9e3feeac9b9d0546416b0dccd6247a8f6870b114 (diff) |
since we unregister, that has not been properly registered, i standardized this.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115593 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_speex.c')
-rw-r--r-- | funcs/func_speex.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/funcs/func_speex.c b/funcs/func_speex.c index afceb9870..f4d5fe412 100644 --- a/funcs/func_speex.c +++ b/funcs/func_speex.c @@ -336,16 +336,12 @@ static int unload_module(void) static int load_module(void) { - if (ast_custom_function_register(&agc_function)) { - return AST_MODULE_LOAD_DECLINE; - } + int res = 0; - if (ast_custom_function_register(&denoise_function)) { - ast_custom_function_unregister(&denoise_function); - return AST_MODULE_LOAD_DECLINE; - } + res |= ast_custom_function_register(&agc_function); + res |= ast_custom_function_register(&denoise_function); - return AST_MODULE_LOAD_SUCCESS; + return res; } AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Noise reduction and Automatic Gain Control (AGC)"); |