[svn-commits] junky: trunk r115593 - /trunk/funcs/func_speex.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri May 9 22:04:25 CDT 2008


Author: junky
Date: Fri May  9 22:04:25 2008
New Revision: 115593

URL: http://svn.digium.com/view/asterisk?view=rev&rev=115593
Log:
since we unregister, that has not been properly registered, i standardized this.

Modified:
    trunk/funcs/func_speex.c

Modified: trunk/funcs/func_speex.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_speex.c?view=diff&rev=115593&r1=115592&r2=115593
==============================================================================
--- trunk/funcs/func_speex.c (original)
+++ trunk/funcs/func_speex.c Fri May  9 22:04:25 2008
@@ -336,16 +336,12 @@
 
 static int load_module(void)
 {
-	if (ast_custom_function_register(&agc_function)) {
-		return AST_MODULE_LOAD_DECLINE;
-	}
-
-	if (ast_custom_function_register(&denoise_function)) {
-		ast_custom_function_unregister(&denoise_function);
-		return AST_MODULE_LOAD_DECLINE;
-	}
-
-	return AST_MODULE_LOAD_SUCCESS;
+	int res = 0;
+
+	res |= ast_custom_function_register(&agc_function);
+	res |= ast_custom_function_register(&denoise_function);
+
+	return res;
 }
 
 AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Noise reduction and Automatic Gain Control (AGC)");




More information about the svn-commits mailing list