mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-26 20:48:21 +00:00
Missed this we don't use underscores in settings in config files to prevent confusiong between variables and settings
This commit is contained in:
parent
81f9303d42
commit
0911849154
@ -1,6 +1,6 @@
|
|||||||
<configuration name="opus.conf">
|
<configuration name="opus.conf">
|
||||||
<settings>
|
<settings>
|
||||||
<param name="use_vbr" value="1"/>
|
<param name="use-vbr" value="1"/>
|
||||||
<param name="complexity" value="10"/>
|
<param name="complexity" value="10"/>
|
||||||
</settings>
|
</settings>
|
||||||
</configuration>
|
</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 *key = (char *) switch_xml_attr_soft(param, "name");
|
||||||
char *val = (char *) switch_xml_attr_soft(param, "value");
|
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);
|
opus_prefs.use_vbr = atoi(val);
|
||||||
} else if (!strcasecmp(key, "complexity")) {
|
} else if (!strcasecmp(key, "complexity")) {
|
||||||
opus_prefs.complexity = atoi(val);
|
opus_prefs.complexity = atoi(val);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user