diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-03 17:39:18 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-03 17:39:18 +0000 |
commit | bbd2b8e467973919d3e924c41df4b64a40daef71 (patch) | |
tree | 17e8eaf1d117185f52e077c873b07085cc501512 /codecs/codec_g726.c | |
parent | fc2a24fdc888e7c8515e40c3d835976819861163 (diff) |
1.4 version of the dead PLC code fix.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@267539 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/codec_g726.c')
-rw-r--r-- | codecs/codec_g726.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/codecs/codec_g726.c b/codecs/codec_g726.c index dade0bdca..a21a9f3dc 100644 --- a/codecs/codec_g726.c +++ b/codecs/codec_g726.c @@ -818,7 +818,6 @@ static struct ast_translator g726tolin = { .desc_size = sizeof(struct g726_coder_pvt), .buffer_samples = BUFFER_SAMPLES, .buf_size = BUFFER_SAMPLES * 2, - .plc_samples = 160, }; static struct ast_translator lintog726 = { @@ -843,7 +842,6 @@ static struct ast_translator g726aal2tolin = { .desc_size = sizeof(struct g726_coder_pvt), .buffer_samples = BUFFER_SAMPLES, .buf_size = BUFFER_SAMPLES * 2, - .plc_samples = 160, }; static struct ast_translator lintog726aal2 = { @@ -858,28 +856,8 @@ static struct ast_translator lintog726aal2 = { .buf_size = BUFFER_SAMPLES / 2, }; -static void parse_config(void) -{ - struct ast_variable *var; - struct ast_config *cfg = ast_config_load("codecs.conf"); - - if (!cfg) - return; - for (var = ast_variable_browse(cfg, "plc"); var; var = var->next) { - if (!strcasecmp(var->name, "genericplc")) { - g726tolin.useplc = ast_true(var->value) ? 1 : 0; - if (option_verbose > 2) - ast_verbose(VERBOSE_PREFIX_3 "codec_g726: %susing generic PLC\n", - g726tolin.useplc ? "" : "not "); - } - } - ast_config_destroy(cfg); -} - static int reload(void) { - parse_config(); - return 0; } @@ -900,9 +878,6 @@ static int load_module(void) { int res = 0; - - parse_config(); - res |= ast_register_translator(&g726tolin); res |= ast_register_translator(&lintog726); |