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