summaryrefslogtreecommitdiff
path: root/codecs/codec_a_mu.c
diff options
context:
space:
mode:
Diffstat (limited to 'codecs/codec_a_mu.c')
-rw-r--r--codecs/codec_a_mu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/codecs/codec_a_mu.c b/codecs/codec_a_mu.c
index b9c1c4938..40e14ca5e 100644
--- a/codecs/codec_a_mu.c
+++ b/codecs/codec_a_mu.c
@@ -161,8 +161,9 @@ static int load_module(void)
res = ast_register_translator(&ulawtoalaw);
else
ast_unregister_translator(&alawtoulaw);
-
- return res;
+ if (res)
+ return AST_MODULE_LOAD_FAILURE;
+ return AST_MODULE_LOAD_SUCCESS;
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "A-law and Mulaw direct Coder/Decoder");