Merge lp:~cjcurran/indicator-sound/global-mute-defensive into lp:indicator-sound/fifth

Proposed by Conor Curran
Status: Merged
Approved by: Charles Kerr
Approved revision: 307
Merge reported by: Charles Kerr
Merged at revision: not available
Proposed branch: lp:~cjcurran/indicator-sound/global-mute-defensive
Merge into: lp:indicator-sound/fifth
Diff against target: 47 lines (+18/-12)
1 file modified
src/pulseaudio-mgr.c (+18/-12)
To merge this branch: bzr merge lp:~cjcurran/indicator-sound/global-mute-defensive
Reviewer Review Type Date Requested Status
Charles Kerr (community) Approve
Review via email: mp+97502@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Charles Kerr (charlesk) wrote :

the if-else cleanup is a nice bonus, too...

review: Approve
Revision history for this message
Charles Kerr (charlesk) wrote :

merged in r308

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/pulseaudio-mgr.c'
--- src/pulseaudio-mgr.c 2012-03-01 16:00:38 +0000
+++ src/pulseaudio-mgr.c 2012-03-14 19:40:32 +0000
@@ -218,7 +218,7 @@
218 if (!operation){218 if (!operation){
219 g_warning ("pm_update_mute operation failed for some reason");219 g_warning ("pm_update_mute operation failed for some reason");
220 return;220 return;
221 } 221 }
222 pa_operation_unref (operation);222 pa_operation_unref (operation);
223}223}
224224
@@ -621,17 +621,23 @@
621 if (eol > 0) {621 if (eol > 0) {
622 return;622 return;
623 }623 }
624 else {624
625 if (sink == NULL) {625 if (sink == NULL) {
626 g_warning ("toggle_mute cb - sink parameter is null - why ?");626 g_warning ("toggle_mute cb - sink parameter is null - why ?");
627 return;627 return;
628 }628 }
629 pa_operation_unref (pa_context_set_sink_mute_by_index (c,629
630 sink->index,630 pa_operation *operation = NULL;
631 GPOINTER_TO_INT(userdata),631 operation = pa_context_set_sink_mute_by_index (c,
632 NULL,632 sink->index,
633 NULL));633 GPOINTER_TO_INT(userdata),
634 }634 NULL,
635 NULL);
636 if (!operation){
637 g_warning ("pm_update_mic_mute operation failed for some reason");
638 return;
639 }
640 pa_operation_unref (operation);
635}641}
636642
637// Source info related callbacks643// Source info related callbacks

Subscribers

People subscribed via source and target branches