diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2011-10-28 09:45:22 -0400 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2011-10-28 09:45:22 -0400 |
commit | 6c40e13a44770e9bda393e5b0b1ebefa6b8077d5 (patch) | |
tree | 8d5e2ee74ab2a728a2af4e514740266424b5b955 /src/pulseaudio-mgr.c | |
parent | 3b17bc829e96005f2cd6897be7cf77fec37ef012 (diff) | |
parent | ef3495e8ca6aa257c2d3123a7b0a25067570b0de (diff) | |
download | ayatana-indicator-sound-6c40e13a44770e9bda393e5b0b1ebefa6b8077d5.tar.gz ayatana-indicator-sound-6c40e13a44770e9bda393e5b0b1ebefa6b8077d5.tar.bz2 ayatana-indicator-sound-6c40e13a44770e9bda393e5b0b1ebefa6b8077d5.zip |
Import upstream version 0.7.9.1
Diffstat (limited to 'src/pulseaudio-mgr.c')
-rw-r--r-- | src/pulseaudio-mgr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulseaudio-mgr.c b/src/pulseaudio-mgr.c index 1da8ce1..ad6d34f 100644 --- a/src/pulseaudio-mgr.c +++ b/src/pulseaudio-mgr.c @@ -175,7 +175,7 @@ void pm_update_volume (gint sink_index, pa_cvolume new_volume) { // LP: #850662 - if (sink_index < 0){ + if (sink_index < 0 || pulse_context == NULL){ return; } pa_operation_unref (pa_context_set_sink_volume_by_index (pulse_context, @@ -197,7 +197,7 @@ void pm_update_mic_gain (gint source_index, pa_cvolume new_gain) { // LP: #850662 - if (source_index < 0){ + if (source_index < 0 || pulse_context == NULL){ return; } pa_operation_unref (pa_context_set_source_volume_by_index (pulse_context, |