diff --git a/clutter/clutter-timeline.c b/clutter/clutter-timeline.c index fecc9a68d..7fc55a9d2 100644 --- a/clutter/clutter-timeline.c +++ b/clutter/clutter-timeline.c @@ -719,6 +719,7 @@ clutter_timeline_set_n_frames (ClutterTimeline *timeline, ClutterTimelinePrivate *priv; g_return_if_fail (CLUTTER_IS_TIMELINE (timeline)); + g_return_if_fail (n_frames > 0); priv = timeline->priv; @@ -747,6 +748,7 @@ clutter_timeline_set_speed (ClutterTimeline *timeline, ClutterTimelinePrivate *priv; g_return_if_fail (CLUTTER_IS_TIMELINE (timeline)); + g_return_if_fail (fps > 0); priv = timeline->priv;