Commit 2a728357 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: specify the frequencies in kHz in all DVB mode.

This is easier to understand and you can still modify the MRL.
parent 063ae6fe
...@@ -1103,6 +1103,8 @@ void CaptureOpenPanel::updateMRL() ...@@ -1103,6 +1103,8 @@ void CaptureOpenPanel::updateMRL()
fileList << mrl; mrl = ""; fileList << mrl; mrl = "";
mrl += " :dvb-frequency=" + QString::number( bdaFreq->value() ); mrl += " :dvb-frequency=" + QString::number( bdaFreq->value() );
if( bdac->isChecked() || bdat->isChecked() || bdaa->isChecked() )
mrl +="000";
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() )
...@@ -1163,6 +1165,8 @@ void CaptureOpenPanel::updateMRL() ...@@ -1163,6 +1165,8 @@ void CaptureOpenPanel::updateMRL()
fileList << "dvb://"; fileList << "dvb://";
mrl += " :dvb-adapter=" + QString::number( dvbCard->value() ); mrl += " :dvb-adapter=" + QString::number( dvbCard->value() );
mrl += " :dvb-frequency=" + QString::number( dvbFreq->value() ); mrl += " :dvb-frequency=" + QString::number( dvbFreq->value() );
if( dvbc->isChecked() || dvbt->isChecked() )
mrl +="000";
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() )
...@@ -1215,16 +1219,6 @@ void CaptureOpenPanel::updateButtons() ...@@ -1215,16 +1219,6 @@ void CaptureOpenPanel::updateButtons()
bdaBandBox->show(); bdaBandBox->show();
bdaBandLabel->show(); bdaBandLabel->show();
} }
if( bdas->isChecked() )
{
bdaFreq->setSuffix(" kHz");
bdaFreq->setSingleStep( 1000 );
}
if( bdac->isChecked() || bdat->isChecked() || bdaa->isChecked( ) )
{
bdaFreq->setSuffix(" Hz");
bdaFreq->setSingleStep( 100000 );
}
break; break;
#else #else
case DVB_DEVICE: case DVB_DEVICE:
...@@ -1242,8 +1236,6 @@ void CaptureOpenPanel::updateButtons() ...@@ -1242,8 +1236,6 @@ void CaptureOpenPanel::updateButtons()
dvbBandBox->show(); dvbBandBox->show();
dvbBandLabel->show(); dvbBandLabel->show();
} }
if( dvbs->isChecked() ) dvbFreq->setSuffix(" kHz");
if( dvbc->isChecked() || dvbt->isChecked() ) dvbFreq->setSuffix(" Hz");
break; break;
#endif #endif
case SCREEN_DEVICE: case SCREEN_DEVICE:
......
Markdown is supported
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