Fix precision warning.

This commit is contained in:
Xavi Artigas 2012-06-25 15:53:28 +02:00
parent 17d3c4557d
commit 87b9d58e95

View file

@ -36,11 +36,11 @@ static void update_color_channel (const gchar *channel_name, gboolean increase,
step = 0.1 * (channel->max_value - channel->min_value);
value = gst_color_balance_get_value (cb, channel);
if (increase) {
value += step;
value = (gint)(value + step);
if (value > channel->max_value)
value = channel->max_value;
} else {
value -= step;
value = (gint)(value - step);
if (value < channel->min_value)
value = channel->min_value;
}