mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +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);
|
step = 0.1 * (channel->max_value - channel->min_value);
|
||||||
value = gst_color_balance_get_value (cb, channel);
|
value = gst_color_balance_get_value (cb, channel);
|
||||||
if (increase) {
|
if (increase) {
|
||||||
value += step;
|
value = (gint)(value + step);
|
||||||
if (value > channel->max_value)
|
if (value > channel->max_value)
|
||||||
value = channel->max_value;
|
value = channel->max_value;
|
||||||
} else {
|
} else {
|
||||||
value -= step;
|
value = (gint)(value - step);
|
||||||
if (value < channel->min_value)
|
if (value < channel->min_value)
|
||||||
value = channel->min_value;
|
value = channel->min_value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue