[vlc-devel] commit: Qt: specify the frequencies in kHz in all DVB mode. ( Jean-Baptiste Kempf )

git version control git at videolan.org
Tue Apr 28 23:45:55 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr 28 23:43:45 2009 +0200| [2a72835723a8b4b1910cec6351d71030d6c9e372] | committer: 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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2a72835723a8b4b1910cec6351d71030d6c9e372
---

 modules/gui/qt4/components/open_panels.cpp |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index 6948129..172fcfd 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -1103,6 +1103,8 @@ void CaptureOpenPanel::updateMRL()
         fileList << mrl; mrl = "";
 
         mrl += " :dvb-frequency=" + QString::number( bdaFreq->value() );
+        if( bdac->isChecked() || bdat->isChecked() || bdaa->isChecked() )
+            mrl +="000";
         if( bdas->isChecked() || bdac->isChecked() )
             mrl += " :dvb-srate=" + QString::number( bdaSrate->value() );
         else if( bdat->isChecked() || bdaa->isChecked() )
@@ -1163,6 +1165,8 @@ void CaptureOpenPanel::updateMRL()
         fileList << "dvb://";
         mrl += " :dvb-adapter=" + QString::number( dvbCard->value() );
         mrl += " :dvb-frequency=" + QString::number( dvbFreq->value() );
+        if( dvbc->isChecked() || dvbt->isChecked() )
+            mrl +="000";
         if( dvbs->isChecked() || dvbc->isChecked() )
             mrl += " :dvb-srate=" + QString::number( dvbSrate->value() );
         else if( dvbt->isChecked() )
@@ -1215,16 +1219,6 @@ void CaptureOpenPanel::updateButtons()
             bdaBandBox->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;
 #else
     case DVB_DEVICE:
@@ -1242,8 +1236,6 @@ void CaptureOpenPanel::updateButtons()
             dvbBandBox->show();
             dvbBandLabel->show();
         }
-        if( dvbs->isChecked() ) dvbFreq->setSuffix(" kHz");
-        if( dvbc->isChecked() || dvbt->isChecked() ) dvbFreq->setSuffix(" Hz");
         break;
 #endif
     case SCREEN_DEVICE:




More information about the vlc-devel mailing list