[gnome-control-center] sound: Make sure the event sound stream stays unmuted



commit 25708e9c8e395c465be8e9643127b3b43ef4ffb7
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jun 25 16:35:41 2012 +0100

    sound: Make sure the event sound stream stays unmuted
    
    Apply mute changes to the stream straight away so that we don't get a
    race with gvc_mixer_event_role_push_volume().
    See https://bugs.freedesktop.org/show_bug.cgi?id=51413 for details.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677478

 panels/sound/gvc-mixer-event-role.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/sound/gvc-mixer-event-role.c b/panels/sound/gvc-mixer-event-role.c
index 5a28767..3646df2 100644
--- a/panels/sound/gvc-mixer-event-role.c
+++ b/panels/sound/gvc-mixer-event-role.c
@@ -103,6 +103,10 @@ static gboolean
 gvc_mixer_event_role_change_is_muted (GvcMixerStream *stream,
                                       gboolean        is_muted)
 {
+        /* Apply change straight away so that we don't get a race with
+         * gvc_mixer_event_role_push_volume().
+         * See https://bugs.freedesktop.org/show_bug.cgi?id=51413 */
+        gvc_mixer_stream_set_is_muted (stream, is_muted);
         return update_settings (GVC_MIXER_EVENT_ROLE (stream),
                                 is_muted, NULL);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]