aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/volume-warning.vala1
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);