diff options
Diffstat (limited to 'formats/format_jpeg.c')
-rw-r--r-- | formats/format_jpeg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/formats/format_jpeg.c b/formats/format_jpeg.c index edef171d2..bb0661074 100644 --- a/formats/format_jpeg.c +++ b/formats/format_jpeg.c @@ -114,7 +114,9 @@ static struct ast_imager jpeg_format = { static int load_module(void) { - return ast_image_register(&jpeg_format); + if (ast_image_register(&jpeg_format)) + return AST_MODULE_LOAD_FAILURE; + return AST_MODULE_LOAD_SUCCESS; } static int unload_module(void) |