Index: formats/format_jpeg.c =================================================================== --- formats/format_jpeg.c (revision 87247) +++ formats/format_jpeg.c (working copy) @@ -114,7 +114,9 @@ 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)