aboutsummaryrefslogtreecommitdiff
path: root/src/pulseaudio-mgr.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-10-13 14:06:58 -0400
committerKen VanDine <ken.vandine@canonical.com>2011-10-13 14:06:58 -0400
commit18ac680202da53507136693452dc34ca2113630f (patch)
tree3bbd8b49fbe8aa8494fe37a682901ffaff75005a /src/pulseaudio-mgr.c
parente92bccafd8bc17ca37d48e78d497e1001dbaef80 (diff)
parent3b17bc829e96005f2cd6897be7cf77fec37ef012 (diff)
downloadayatana-indicator-sound-18ac680202da53507136693452dc34ca2113630f.tar.gz
ayatana-indicator-sound-18ac680202da53507136693452dc34ca2113630f.tar.bz2
ayatana-indicator-sound-18ac680202da53507136693452dc34ca2113630f.zip
releasing version 0.7.9-0ubuntu1
Diffstat (limited to 'src/pulseaudio-mgr.c')
-rw-r--r--src/pulseaudio-mgr.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pulseaudio-mgr.c b/src/pulseaudio-mgr.c
index a31084a..1da8ce1 100644
--- a/src/pulseaudio-mgr.c
+++ b/src/pulseaudio-mgr.c
@@ -174,6 +174,10 @@ reconnect_to_pulse (gpointer user_data)
void
pm_update_volume (gint sink_index, pa_cvolume new_volume)
{
+ // LP: #850662
+ if (sink_index < 0){
+ return;
+ }
pa_operation_unref (pa_context_set_sink_volume_by_index (pulse_context,
sink_index,
&new_volume,
@@ -192,6 +196,10 @@ pm_update_mute (gboolean update)
void
pm_update_mic_gain (gint source_index, pa_cvolume new_gain)
{
+ // LP: #850662
+ if (source_index < 0){
+ return;
+ }
pa_operation_unref (pa_context_set_source_volume_by_index (pulse_context,
source_index,
&new_gain,
@@ -202,6 +210,10 @@ pm_update_mic_gain (gint source_index, pa_cvolume new_gain)
void
pm_update_mic_mute (gint source_index, gint mute_update)
{
+ // LP: #850662
+ if (source_index < 0){
+ return;
+ }
pa_operation_unref (pa_context_set_source_mute_by_index (pulse_context,
source_index,
mute_update,