diff options
Diffstat (limited to 'codecs')
-rw-r--r-- | codecs/codec_adpcm.c | 2 | ||||
-rw-r--r-- | codecs/codec_alaw.c | 2 | ||||
-rw-r--r-- | codecs/codec_g722.c | 2 | ||||
-rw-r--r-- | codecs/codec_g726.c | 2 | ||||
-rw-r--r-- | codecs/codec_gsm.c | 4 | ||||
-rw-r--r-- | codecs/codec_lpc10.c | 2 | ||||
-rw-r--r-- | codecs/codec_speex.c | 4 | ||||
-rw-r--r-- | codecs/codec_ulaw.c | 2 | ||||
-rw-r--r-- | codecs/codec_zap.c | 4 |
9 files changed, 12 insertions, 12 deletions
diff --git a/codecs/codec_adpcm.c b/codecs/codec_adpcm.c index 83e15c190..63a1ab1bc 100644 --- a/codecs/codec_adpcm.c +++ b/codecs/codec_adpcm.c @@ -346,7 +346,7 @@ static int parse_config(int reload) struct ast_config *cfg = ast_config_load("codecs.conf", config_flags); struct ast_variable *var; if (cfg == NULL) - return -1; + return 0; if (cfg == CONFIG_STATUS_FILEUNCHANGED) return 0; for (var = ast_variable_browse(cfg, "plc"); var ; var = var->next) { diff --git a/codecs/codec_alaw.c b/codecs/codec_alaw.c index f1a44d062..ba5808f78 100644 --- a/codecs/codec_alaw.c +++ b/codecs/codec_alaw.c @@ -129,7 +129,7 @@ static int parse_config(int reload) struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 }; struct ast_config *cfg = ast_config_load("codecs.conf", config_flags); if (cfg == NULL) - return -1; + return 0; if (cfg == CONFIG_STATUS_FILEUNCHANGED) return 0; for (var = ast_variable_browse(cfg, "plc"); var; var = var->next) { diff --git a/codecs/codec_g722.c b/codecs/codec_g722.c index 8e77e4c74..a81b9b6a1 100644 --- a/codecs/codec_g722.c +++ b/codecs/codec_g722.c @@ -231,7 +231,7 @@ static int parse_config(int reload) struct ast_config *cfg = ast_config_load("codecs.conf", config_flags); if (cfg == NULL) - return -1; + return 0; if (cfg == CONFIG_STATUS_FILEUNCHANGED) return 0; for (var = ast_variable_browse(cfg, "plc"); var; var = var->next) { diff --git a/codecs/codec_g726.c b/codecs/codec_g726.c index 5a50d3b4d..c8a671ee8 100644 --- a/codecs/codec_g726.c +++ b/codecs/codec_g726.c @@ -891,7 +891,7 @@ static int parse_config(int reload) struct ast_config *cfg = ast_config_load("codecs.conf", config_flags); if (cfg == NULL) - return -1; + return 0; if (cfg == CONFIG_STATUS_FILEUNCHANGED) return 0; for (var = ast_variable_browse(cfg, "plc"); var; var = var->next) { diff --git a/codecs/codec_gsm.c b/codecs/codec_gsm.c index 27175cfd9..bb4af8cfb 100644 --- a/codecs/codec_gsm.c +++ b/codecs/codec_gsm.c @@ -229,8 +229,8 @@ static int parse_config(int reload) struct ast_variable *var; struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 }; struct ast_config *cfg = ast_config_load("codecs.conf", config_flags); - if (!cfg) - return -1; + if (cfg == NULL) + return 0; if (cfg == CONFIG_STATUS_FILEUNCHANGED) return 0; for (var = ast_variable_browse(cfg, "plc"); var; var = var->next) { diff --git a/codecs/codec_lpc10.c b/codecs/codec_lpc10.c index dfede082f..1e4ec37f3 100644 --- a/codecs/codec_lpc10.c +++ b/codecs/codec_lpc10.c @@ -256,7 +256,7 @@ static int parse_config(int reload) struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 }; struct ast_config *cfg = ast_config_load("codecs.conf", config_flags); if (cfg == NULL) - return -1; + return 0; if (cfg == CONFIG_STATUS_FILEUNCHANGED) return 0; for (var = ast_variable_browse(cfg, "plc"); var; var = var->next) { diff --git a/codecs/codec_speex.c b/codecs/codec_speex.c index 46d986860..21c98a5f5 100644 --- a/codecs/codec_speex.c +++ b/codecs/codec_speex.c @@ -373,8 +373,8 @@ static int parse_config(int reload) int res; float res_f; - if (cfg == NULL || cfg == CONFIG_STATUS_FILEUNCHANGED) - return -1; + if (cfg == NULL) + return 0; if (cfg == CONFIG_STATUS_FILEUNCHANGED) return 0; diff --git a/codecs/codec_ulaw.c b/codecs/codec_ulaw.c index b91213ef5..ebd1928a2 100644 --- a/codecs/codec_ulaw.c +++ b/codecs/codec_ulaw.c @@ -142,7 +142,7 @@ static int parse_config(int reload) struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 }; struct ast_config *cfg = ast_config_load("codecs.conf", config_flags); if (cfg == NULL) - return -1; + return 0; if (cfg == CONFIG_STATUS_FILEUNCHANGED) return 0; for (var = ast_variable_browse(cfg, "plc"); var; var = var->next) { diff --git a/codecs/codec_zap.c b/codecs/codec_zap.c index 222b95a51..b5b99d29a 100644 --- a/codecs/codec_zap.c +++ b/codecs/codec_zap.c @@ -377,8 +377,8 @@ static int parse_config(int reload) struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 }; struct ast_config *cfg = ast_config_load("codecs.conf", config_flags); - if (!cfg) - return -1; + if (cfg == NULL) + return 0; if (cfg == CONFIG_STATUS_FILEUNCHANGED) return 0; |