Commit 0fa8b0e0 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Qt: use dvb://frequency= iso dvb:// :dvb-frequency=

This affects Opening of DVB and BDA.
parent 6b6b9560
...@@ -1103,11 +1103,11 @@ void CaptureOpenPanel::updateMRL() ...@@ -1103,11 +1103,11 @@ void CaptureOpenPanel::updateMRL()
else if( bdac->isChecked() ) mrl = "dvb-c://"; else if( bdac->isChecked() ) mrl = "dvb-c://";
else if( bdaa->isChecked() ) mrl = "atsc://"; else if( bdaa->isChecked() ) mrl = "atsc://";
else return; else return;
fileList << mrl; mrl = ""; mrl += "frequency=" + QString::number( bdaFreq->value() );
mrl += " :dvb-frequency=" + QString::number( bdaFreq->value() );
if( bdac->isChecked() || bdat->isChecked() || bdaa->isChecked() ) if( bdac->isChecked() || bdat->isChecked() || bdaa->isChecked() )
mrl +="000"; mrl +="000";
fileList << mrl; mrl = "";
if( bdas->isChecked() || bdac->isChecked() ) if( bdas->isChecked() || bdac->isChecked() )
mrl += " :dvb-srate=" + QString::number( bdaSrate->value() ); mrl += " :dvb-srate=" + QString::number( bdaSrate->value() );
else if( bdat->isChecked() || bdaa->isChecked() ) else if( bdat->isChecked() || bdaa->isChecked() )
...@@ -1165,11 +1165,13 @@ void CaptureOpenPanel::updateMRL() ...@@ -1165,11 +1165,13 @@ void CaptureOpenPanel::updateMRL()
mrl += " :pvr-bitrate=" + QString::number( pvrBitr->value() ); mrl += " :pvr-bitrate=" + QString::number( pvrBitr->value() );
break; break;
case DVB_DEVICE: case DVB_DEVICE:
fileList << "dvb://"; mrl = "dvb://";
mrl += " :dvb-adapter=" + QString::number( dvbCard->value() ); mrl += "frequency=" + QString::number( dvbFreq->value() );
mrl += " :dvb-frequency=" + QString::number( dvbFreq->value() );
if( dvbc->isChecked() || dvbt->isChecked() ) if( dvbc->isChecked() || dvbt->isChecked() )
mrl +="000"; mrl +="000";
fileList << mrl; mrl= "";
mrl += " :dvb-adapter=" + QString::number( dvbCard->value() );
if( dvbs->isChecked() || dvbc->isChecked() ) if( dvbs->isChecked() || dvbc->isChecked() )
mrl += " :dvb-srate=" + QString::number( dvbSrate->value() ); mrl += " :dvb-srate=" + QString::number( dvbSrate->value() );
else if( dvbt->isChecked() ) else if( dvbt->isChecked() )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment