Commit 7cd9a963 authored by Jean-Baptiste Kempf's avatar 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
parent cd0e3fa0
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <vlc_url.h> #include <vlc_url.h>
#include <vlc_strings.h> #include <vlc_strings.h>
#include <vlc_aout.h> #include <vlc_aout.h>
#include <vlc_aout_intf.h>
#include <QApplication> #include <QApplication>
...@@ -989,6 +990,9 @@ MainInputManager::~MainInputManager() ...@@ -989,6 +990,9 @@ MainInputManager::~MainInputManager()
config_PutInt( p_intf, "random", var_GetBool( THEPL, "random" ) ); config_PutInt( p_intf, "random", var_GetBool( THEPL, "random" ) );
config_PutInt( p_intf, "loop", var_GetBool( THEPL, "loop" ) ); config_PutInt( p_intf, "loop", var_GetBool( THEPL, "loop" ) );
config_PutInt( p_intf, "repeat", var_GetBool( THEPL, "repeat" ) ); 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() vout_thread_t* MainInputManager::getVout()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment