From f81bc0d3747f5ef86254a5597562ce1bb425eb97 Mon Sep 17 00:00:00 2001
From: Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com>
Date: Wed, 6 Feb 2013 11:54:10 -0500
Subject: Guard against CID:12651, division by zero of FPS value due to its use
 for timing timeline updates.

---
 src/idotimeline.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src')

diff --git a/src/idotimeline.c b/src/idotimeline.c
index ba838ba..8eea4b5 100644
--- a/src/idotimeline.c
+++ b/src/idotimeline.c
@@ -409,8 +409,8 @@ ido_timeline_start (IdoTimeline *timeline)
       else
         priv->timer = g_timer_new ();
 
-      /* sanity check */
-      g_assert (priv->fps > 0);
+      /* sanity check; CID: 12651 */
+      priv->fps = priv->fps > 0 ? priv->fps : DEFAULT_FPS;
 
       if (priv->screen)
         {
-- 
cgit v1.2.3