提交 09118491 authored 作者: Brian West's avatar Brian West

Missed this we don't use underscores in settings in config files to prevent…

Missed this we don't use underscores in settings in config files to prevent confusiong between variables and settings
上级 81f9303d
<configuration name="opus.conf">
<settings>
<param name="use_vbr" value="1"/>
<param name="use-vbr" value="1"/>
<param name="complexity" value="10"/>
</settings>
</configuration>
......@@ -409,7 +409,7 @@ static switch_status_t opus_load_config(switch_bool_t reload)
char *key = (char *) switch_xml_attr_soft(param, "name");
char *val = (char *) switch_xml_attr_soft(param, "value");
if (!strcasecmp(key, "use_vbr") && !zstr(val)) {
if (!strcasecmp(key, "use-vbr") && !zstr(val)) {
opus_prefs.use_vbr = atoi(val);
} else if (!strcasecmp(key, "complexity")) {
opus_prefs.complexity = atoi(val);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论