]> git.sesse.net Git - vlc/commitdiff
Qt: Fix audio options in SPrefs
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 1 Jan 2010 23:04:08 +0000 (00:04 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 1 Jan 2010 23:04:08 +0000 (00:04 +0100)
SPDIF and directx device

modules/gui/qt4/components/simple_preferences.cpp

index 002886d84775a561add54bcfe699dfbc0adb011a..b73336ffa0d4a4b2240cb10bfd75ed76016ea788 100644 (file)
@@ -676,7 +676,7 @@ void SPrefsPanel::updateAudioOptions( int number)
     QString value = qobject_cast<QComboBox *>(optionWidgets[audioOutCoB])
                                             ->itemData( number ).toString();
 #ifdef WIN32
-    optionWidgets[directxW]->setVisible( ( value == "directx" ) );
+    optionWidgets[directxW]->setVisible( ( value == "aout_directx" ) );
 #else
     /* optionWidgets[ossW] can be NULL */
     if( optionWidgets[ossW] )
@@ -686,8 +686,8 @@ void SPrefsPanel::updateAudioOptions( int number)
         optionWidgets[alsaW]->setVisible( ( value == "alsa" ) );
 #endif
     optionWidgets[fileW]->setVisible( ( value == "aout_file" ) );
-    optionWidgets[spdifChB]->setVisible( ( value != "aout_file"
-                                           && value != "dummy" ) );
+    optionWidgets[spdifChB]->setVisible( ( value == "alsa" || value == "oss" || value == "auhal" ||
+                                           value == "aout_directx" || value == "waveout" ) );
 }