mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
Fix the mess I've made on the last commit. Now we really don't depend on QSettings or mod_qsettings.
This commit is contained in:
@@ -126,6 +126,17 @@ QString CodecWidget::getCodecString()
|
||||
|
||||
void CodecWidget::setCodecString(QString codecList)
|
||||
{
|
||||
/* Mostly for backwards compatibility. */
|
||||
if ( codecList.startsWith("$")) {
|
||||
QStringList parsed = codecList.split("{");
|
||||
QString var = parsed.at(1);
|
||||
var = var.split("}").at(0);
|
||||
var = switch_core_get_variable(var.toAscii().data());
|
||||
if ( ! var.isEmpty() ) {
|
||||
codecList = var;
|
||||
}
|
||||
}
|
||||
|
||||
QStringList rawEnCodecs;
|
||||
QStringList split = codecList.split(",");
|
||||
foreach(QString s, split)
|
||||
|
Reference in New Issue
Block a user