1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

* design change: the current volume is automatically stored on quit now and restored on first playback of the next run, similar to other major media players (closes #989)

This commit is contained in:
Felix Paul Kühne 2007-01-14 12:40:05 +00:00
parent 41fc10b74f
commit 14275baf39

View File

@ -1528,6 +1528,7 @@ static VLCMain *_o_sharedMainInstance = nil;
{
playlist_t * p_playlist;
vout_thread_t * p_vout;
int returnedValue = 0;
#define p_input p_intf->p_sys->p_input
if( p_input )
@ -1554,6 +1555,14 @@ static VLCMain *_o_sharedMainInstance = nil;
msleep( 100000 );
}
msleep( 500000 );
/* make sure that the current volume is saved */
config_PutInt( p_intf->p_libvlc, "volume", i_lastShownVolume );
returnedValue = config_SaveConfigFile( p_intf->p_libvlc, "main" );
if( returnedValue != 0 )
msg_Err( p_intf,
"error while saving volume in osx's terminate method (%i)",
returnedValue );
/* save the prefs if they were changed in the extended panel */
if (o_extended && [o_extended getConfigChanged])