mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 11:29:55 +00:00
Fix precision warning.
This commit is contained in:
parent
17d3c4557d
commit
87b9d58e95
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue