mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
aatv: Fixes for rain-mode
Some rain-mode properties tried to read float from int value. Initialize rain after setting rain-mode. Rain was non-functional if width/height were left at default values. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1459>
This commit is contained in:
parent
41fe17adda
commit
3e680d8d5d
1 changed files with 5 additions and 4 deletions
|
@ -831,27 +831,28 @@ gst_aatv_set_property (GObject * object, guint prop_id, const GValue * value,
|
|||
break;
|
||||
}
|
||||
case PROP_RAIN_DELAY_MIN:{
|
||||
if (g_value_get_float (value) <= aatv->rain_delay_max)
|
||||
if (g_value_get_int (value) <= aatv->rain_delay_max)
|
||||
aatv->rain_delay_min = g_value_get_int (value);
|
||||
break;
|
||||
}
|
||||
case PROP_RAIN_DELAY_MAX:{
|
||||
if (g_value_get_float (value) >= aatv->rain_delay_min)
|
||||
if (g_value_get_int (value) >= aatv->rain_delay_min)
|
||||
aatv->rain_delay_max = g_value_get_int (value);
|
||||
break;
|
||||
}
|
||||
case PROP_RAIN_LENGTH_MIN:{
|
||||
if (g_value_get_float (value) <= aatv->rain_length_max)
|
||||
if (g_value_get_int (value) <= aatv->rain_length_max)
|
||||
aatv->rain_length_min = g_value_get_int (value);
|
||||
break;
|
||||
}
|
||||
case PROP_RAIN_LENGTH_MAX:{
|
||||
if (g_value_get_float (value) >= aatv->rain_length_min)
|
||||
if (g_value_get_int (value) >= aatv->rain_length_min)
|
||||
aatv->rain_length_max = g_value_get_int (value);
|
||||
break;
|
||||
}
|
||||
case PROP_RAIN_MODE:{
|
||||
aatv->rain_mode = g_value_get_enum (value);
|
||||
gst_aatv_rain_init (aatv);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue