mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	since we unregister, that has not been properly registered, i standardized this.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115593 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -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)"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user