Qt4 - Open Capture: remove unuseful debug and use different numbers.
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 8 Sep 2007 10:39:05 +0000 (10:39 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 8 Sep 2007 10:39:05 +0000 (10:39 +0000)
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.hpp

index 9018e0e..8bba25e 100644 (file)
@@ -795,14 +795,12 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
     /**********
      * Screen *
      **********/
-
     addModuleAndLayouts( SCREEN_DEVICE, screen, "Desktop" );
     QLabel *screenLabel = new QLabel( "This option will open your own "
             "desktop in order to save or stream it.");
     screenLabel->setWordWrap( true );
     screenDevLayout->addWidget( screenLabel, 0, 0 );
 
-
     /* General connects */
     connect( ui.deviceCombo, SIGNAL( activated( int ) ),
                      stackedDevLayout, SLOT( setCurrentIndex( int ) ) );
@@ -825,7 +823,6 @@ void CaptureOpenPanel::updateMRL()
     QString mrl = "";
     int i_devicetype = ui.deviceCombo->itemData(
             ui.deviceCombo->currentIndex() ).toInt();
-    msg_Dbg( p_intf, "Capture Type: %i", i_devicetype );
     switch( i_devicetype )
     {
     case V4L_DEVICE:
index eade9c0..69be347 100644 (file)
 #define setSpinBoxFreq( spinbox ){ spinbox->setRange ( 0, INT_MAX ); \
     spinbox->setAccelerated( true ); }
 
-#define V4L_DEVICE         0x0
-#define PVR_DEVICE         0x1
-#define DVB_DEVICE         0x2
-#define BDA_DEVICE         0x4
-#define DSHOW_DEVICE       0x8
-#define SCREEN_DEVICE      0x16
-#define JACK_DEVICE        0x32
+#define V4L_DEVICE         0
+#define PVR_DEVICE         1
+#define DVB_DEVICE         2
+#define BDA_DEVICE         3
+#define DSHOW_DEVICE     4
+#define SCREEN_DEVICE      5
+#define JACK_DEVICE        6
 
 class QWidget;
 class QLineEdit;