aboutsummaryrefslogtreecommitdiffstats
path: root/formats/format_g729.c
diff options
context:
space:
mode:
Diffstat (limited to 'formats/format_g729.c')
-rw-r--r--formats/format_g729.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/formats/format_g729.c b/formats/format_g729.c
index 3f46bcbff..5ad16d97e 100644
--- a/formats/format_g729.c
+++ b/formats/format_g729.c
@@ -148,7 +148,9 @@ static const struct ast_format g729_f = {
static int load_module(void)
{
- return ast_format_register(&g729_f);
+ if (ast_format_register(&g729_f))
+ return AST_MODULE_LOAD_FAILURE;
+ return AST_MODULE_LOAD_SUCCESS;
}
static int unload_module(void)