mirror of
https://github.com/brl/mutter.git
synced 2025-01-25 19:08:56 +00:00
[timeline] Check the fps property range in the ctor
The clutter_timeline_new() constructor is not checking the full range of the passed :fps property. The ParamSpec of the property and the setter method perform this check, so the ctor should as well.
This commit is contained in:
parent
f753847851
commit
43bd4e5d3f
@ -1258,7 +1258,7 @@ clutter_timeline_new (guint n_frames,
|
|||||||
guint fps)
|
guint fps)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (n_frames > 0, NULL);
|
g_return_val_if_fail (n_frames > 0, NULL);
|
||||||
g_return_val_if_fail (fps > 0, NULL);
|
g_return_val_if_fail (fps > 0 && fps <= 1000, NULL);
|
||||||
|
|
||||||
return g_object_new (CLUTTER_TYPE_TIMELINE,
|
return g_object_new (CLUTTER_TYPE_TIMELINE,
|
||||||
"fps", fps,
|
"fps", fps,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user