[vlc-commits] Qt: restore audio volume save
Jean-Baptiste Kempf
git at videolan.org
Wed Aug 24 18:17:53 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Aug 24 18:16:42 2011 +0200| [7cd9a9635829f8cdf8c1a36ea0eef5fffb6b1a39] | committer: Jean-Baptiste Kempf
Qt: restore audio volume save
Close #4922 #3983
I am not sure this is the right way to do yet, but this will act as a
work-around, until we have a proper fix
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7cd9a9635829f8cdf8c1a36ea0eef5fffb6b1a39
---
modules/gui/qt4/input_manager.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index cb46750..1b4bb1b 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -35,6 +35,7 @@
#include <vlc_url.h>
#include <vlc_strings.h>
#include <vlc_aout.h>
+#include <vlc_aout_intf.h>
#include <QApplication>
@@ -989,6 +990,9 @@ MainInputManager::~MainInputManager()
config_PutInt( p_intf, "random", var_GetBool( THEPL, "random" ) );
config_PutInt( p_intf, "loop", var_GetBool( THEPL, "loop" ) );
config_PutInt( p_intf, "repeat", var_GetBool( THEPL, "repeat" ) );
+
+ if( var_InheritBool( p_intf, "qt-autosave-volume" ) )
+ config_PutInt( p_intf, "volume", aout_VolumeGet( THEPL ) );
}
vout_thread_t* MainInputManager::getVout()
More information about the vlc-commits
mailing list