From 87b9d58e953a6e9a1edb9b2f3274d1976f2bb75e Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Mon, 25 Jun 2012 15:53:28 +0200 Subject: [PATCH] Fix precision warning. --- gst-sdk/tutorials/playback-tutorial-5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-sdk/tutorials/playback-tutorial-5.c b/gst-sdk/tutorials/playback-tutorial-5.c index 1bb6597..d89c7f2 100644 --- a/gst-sdk/tutorials/playback-tutorial-5.c +++ b/gst-sdk/tutorials/playback-tutorial-5.c @@ -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; } -- 2.7.4