diff options
author | charles kerr <charlesk@canonical.com> | 2015-12-29 13:40:08 -0600 |
---|---|---|
committer | charles kerr <charlesk@canonical.com> | 2015-12-29 13:40:08 -0600 |
commit | 0463874601bf826dcd5b976d928e2d53c9517f94 (patch) | |
tree | 47fa7d546a8be408f2deb78f90c297b7a794daeb /src/volume-warning-pulse.vala | |
parent | 902abad6836c6de2411d7514f36a106eee9444ed (diff) | |
download | ayatana-indicator-sound-0463874601bf826dcd5b976d928e2d53c9517f94.tar.gz ayatana-indicator-sound-0463874601bf826dcd5b976d928e2d53c9517f94.tar.bz2 ayatana-indicator-sound-0463874601bf826dcd5b976d928e2d53c9517f94.zip |
silence spurious g_warning
Diffstat (limited to 'src/volume-warning-pulse.vala')
-rw-r--r-- | src/volume-warning-pulse.vala | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/volume-warning-pulse.vala b/src/volume-warning-pulse.vala index 335c8bf..918595b 100644 --- a/src/volume-warning-pulse.vala +++ b/src/volume-warning-pulse.vala @@ -73,10 +73,11 @@ public class VolumeWarningPulse : VolumeWarning GLib.return_if_fail(_multimedia_sink_index != PulseAudio.INVALID_INDEX); _pulse_context.get_sink_info_by_index(_multimedia_sink_index, (c,i) => { - GLib.return_if_fail(i != null); - GLib.message("setting multimedia_volume to %s", i.volume.to_string()); - _multimedia_cvolume = i.volume; - multimedia_volume = i.volume.max(); + if (i != null) { + GLib.message("setting multimedia_volume to %s", i.volume.to_string()); + _multimedia_cvolume = i.volume; + multimedia_volume = i.volume.max(); + } }); } |