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