diff options
author | charles kerr <charlesk@canonical.com> | 2015-12-28 19:43:02 -0600 |
---|---|---|
committer | charles kerr <charlesk@canonical.com> | 2015-12-28 19:43:02 -0600 |
commit | afb2f76e8ee74b47a2425c1cb7d5c8b6dd0df886 (patch) | |
tree | 08c0e1c367aea7c4d86b8bd485b45fe958136980 /src/volume-warning.vala | |
parent | 19cad1422f52e9b344cca17b33f9130aae937a1a (diff) | |
download | ayatana-indicator-sound-afb2f76e8ee74b47a2425c1cb7d5c8b6dd0df886.tar.gz ayatana-indicator-sound-afb2f76e8ee74b47a2425c1cb7d5c8b6dd0df886.tar.bz2 ayatana-indicator-sound-afb2f76e8ee74b47a2425c1cb7d5c8b6dd0df886.zip |
in volume-warning's set_multimedia_volume(), test for PA.Volume.INVALID
Diffstat (limited to 'src/volume-warning.vala')
-rw-r--r-- | src/volume-warning.vala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/volume-warning.vala b/src/volume-warning.vala index 6d8cbd5..3d53481 100644 --- a/src/volume-warning.vala +++ b/src/volume-warning.vala @@ -245,6 +245,7 @@ public class VolumeWarning : Object GLib.return_if_fail(_pulse_context != null); GLib.return_if_fail(index != PulseAudio.INVALID_INDEX); + GLib.return_if_fail(volume != PulseAudio.Volume.INVALID); unowned CVolume cvol = CVolume(); cvol.set(_multimedia_cvolume.channels, volume); |