[MOVED FROM BAD 14/29] shapewipe: Correctly handle 0/1 fps
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 23 Jun 2009 16:23:13 +0000 (18:23 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 12 Feb 2010 10:12:33 +0000 (11:12 +0100)
gst/shapewipe/gstshapewipe.c

index 9521880..4029c49 100644 (file)
@@ -334,7 +334,10 @@ gst_shape_wipe_video_sink_setcaps (GstPad * pad, GstCaps * caps)
     g_mutex_unlock (self->mask_mutex);
   }
 
-  self->frame_duration = gst_util_uint64_scale (GST_SECOND, fps_d, fps_n);
+  if (fps_n != 0)
+    self->frame_duration = gst_util_uint64_scale (GST_SECOND, fps_d, fps_n);
+  else
+    self->frame_duration = 0;
 
   ret = gst_pad_set_caps (self->srcpad, caps);