From 3a6ce9618b93435f8e8e2b0b3c9310e9752c870f Mon Sep 17 00:00:00 2001 From: Francois Cartegnie Date: Wed, 9 Jun 2010 01:13:56 +0200 Subject: [PATCH] Ignore unmute if volume hasn't been set or muted. fixes #3636 Signed-off-by: Jean-Baptiste Kempf --- src/audio_output/intf.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/audio_output/intf.c b/src/audio_output/intf.c index f7c0f489e6..493ad5c71b 100644 --- a/src/audio_output/intf.c +++ b/src/audio_output/intf.c @@ -122,6 +122,17 @@ int doVolumeChanges( unsigned action, vlc_object_t * p_object, int i_nb_steps, ( action == TOGGLE_MUTE ) )); + /* If muting or unmuting when play hasn't started */ + if ( action == SET_MUTE && !b_unmute_condition && !b_mute_condition ) + { + if ( p_aout ) + { + aout_unlock_volume( p_aout ); + vlc_object_release( p_aout ); + } + return i_result; + } + /* On UnMute */ if ( b_unmute_condition ) { -- 2.39.2