aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-03-01 20:36:26 +0000
committerConor Curran <conor.curran@canonical.com>2011-03-01 20:36:26 +0000
commitc373cdd1c65b5ec43e93317600508a5b0d9e7a44 (patch)
treeaf46447f1c75c58e56282cde7051095ffcc2a7e7
parent031015221d4551339e14b31838d364386952a63b (diff)
downloadayatana-indicator-sound-c373cdd1c65b5ec43e93317600508a5b0d9e7a44.tar.gz
ayatana-indicator-sound-c373cdd1c65b5ec43e93317600508a5b0d9e7a44.tar.bz2
ayatana-indicator-sound-c373cdd1c65b5ec43e93317600508a5b0d9e7a44.zip
fixed a bug introduced in the last merge earlier this week
-rw-r--r--src/pulseaudio-mgr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pulseaudio-mgr.c b/src/pulseaudio-mgr.c
index 17545a4..6d11221 100644
--- a/src/pulseaudio-mgr.c
+++ b/src/pulseaudio-mgr.c
@@ -528,11 +528,10 @@ pm_toggle_mute_for_every_sink_callback (pa_context *c,
return;
}
else {
- if (IS_ACTIVE_SINK (userdata) == FALSE || sink == NULL){
- g_warning ("toggle_mute cb - our user data is not what we think it should be or the sink parameter is null");
+ if (sink == NULL) {
+ g_warning ("toggle_mute cb - sink parameter is null - why ?");
return;
}
-
pa_operation_unref (pa_context_set_sink_mute_by_index (c,
sink->index,
GPOINTER_TO_INT(userdata),