[vlc-commits] Qt: workaround for win32 to allow saving the volume

Jean-Baptiste Kempf git at videolan.org
Fri Feb 27 12:02:20 CET 2015


vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Feb 27 11:59:18 2015 +0100| [d4bb3e3f08805e62be9d5a505a642b1b14bba343] | committer: Jean-Baptiste Kempf

Qt: workaround for win32 to allow saving the volume

This is bad, but I lack a better idea for now.

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

 modules/gui/qt4/components/simple_preferences.cpp |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index 2487cc4..6002648 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -996,6 +996,11 @@ void SPrefsPanel::updateAudioOptions( int number)
     optionWidgets["spdifChB"]->setVisible( ( value == "alsa" || value == "oss" || value == "auhal" ||
                                            value == "directsound" || value == "waveout" ) );
 
+#ifdef _WIN32
+    // FIXME
+    if( value == "any" )
+        value = "directsound";
+#endif
     int volume = getDefaultAudioVolume(VLC_OBJECT(p_intf), qtu(value));
     bool save = true;
 



More information about the vlc-commits mailing list