sound: volume is unsigned so cannot be <= 0

This commit is contained in:
Bastien Nocera 2011-10-20 16:08:53 +01:00
parent 3d3cfa7304
commit bafe9c4020

View file

@ -388,7 +388,7 @@ update_icon (GvcStreamStatusIcon *icon)
can_decibel = gvc_mixer_stream_get_can_decibel (icon->priv->mixer_stream); can_decibel = gvc_mixer_stream_get_can_decibel (icon->priv->mixer_stream);
/* select image */ /* select image */
if (volume <= 0 || is_muted) { if (volume == 0 || is_muted) {
n = 0; n = 0;
} else { } else {
n = 3 * volume / PA_VOLUME_NORM + 1; n = 3 * volume / PA_VOLUME_NORM + 1;