[vlc-devel] commit: Qt: Fix audio options in SPrefs (Jean-Baptiste Kempf )
git version control
git at videolan.org
Sat Jan 2 00:05:38 CET 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Jan 2 00:04:08 2010 +0100| [bc8ee31f30c51821529af6403e7929f2df2f5487] | committer: Jean-Baptiste Kempf
Qt: Fix audio options in SPrefs
SPDIF and directx device
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bc8ee31f30c51821529af6403e7929f2df2f5487
---
modules/gui/qt4/components/simple_preferences.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index 002886d..b73336f 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -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" ) );
}
More information about the vlc-devel
mailing list