From 6b00d1054944e5395442f55d6d5b123ee8017d29 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 26 Jul 2007 11:28:30 +0000 Subject: [PATCH] Check for 0 frames per seconds ClutterTimeline with zero frames per seconds are not allowed as well. --- clutter/clutter-timeline.c | 2 ++ 1 file changed, 2 insertions(+) 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;