[vlc-devel] [PATCH] Ignore unmute if volume hasn't been set or muted. fixes #3636
Francois Cartegnie
fcvlcdev at free.fr
Wed Jun 9 01:13:56 CEST 2010
---
src/audio_output/intf.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/audio_output/intf.c b/src/audio_output/intf.c
index f7c0f48..493ad5c 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 )
{
--
1.6.4.4
More information about the vlc-devel
mailing list