Check for 0 frames per seconds
ClutterTimeline with zero frames per seconds are not allowed as well.
This commit is contained in:
parent
34a119f8a7
commit
6b00d10549
@ -719,6 +719,7 @@ clutter_timeline_set_n_frames (ClutterTimeline *timeline,
|
|||||||
ClutterTimelinePrivate *priv;
|
ClutterTimelinePrivate *priv;
|
||||||
|
|
||||||
g_return_if_fail (CLUTTER_IS_TIMELINE (timeline));
|
g_return_if_fail (CLUTTER_IS_TIMELINE (timeline));
|
||||||
|
g_return_if_fail (n_frames > 0);
|
||||||
|
|
||||||
priv = timeline->priv;
|
priv = timeline->priv;
|
||||||
|
|
||||||
@ -747,6 +748,7 @@ clutter_timeline_set_speed (ClutterTimeline *timeline,
|
|||||||
ClutterTimelinePrivate *priv;
|
ClutterTimelinePrivate *priv;
|
||||||
|
|
||||||
g_return_if_fail (CLUTTER_IS_TIMELINE (timeline));
|
g_return_if_fail (CLUTTER_IS_TIMELINE (timeline));
|
||||||
|
g_return_if_fail (fps > 0);
|
||||||
|
|
||||||
priv = timeline->priv;
|
priv = timeline->priv;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user