summaryrefslogtreecommitdiff
path: root/gst/shapewipe/gstshapewipe.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-06-23 18:23:13 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-06-23 18:24:00 +0200
commit6ba122834a4972e0bd1e9950eeed8ea127ea3fb4 (patch)
tree8e8e479043ad695c2579bc23c4a8236c865cc90c /gst/shapewipe/gstshapewipe.c
parenta2a0322df9a7005a01aafb5efc32fcc1179d205c (diff)
shapewipe: Correctly handle 0/1 fps
Diffstat (limited to 'gst/shapewipe/gstshapewipe.c')
-rw-r--r--gst/shapewipe/gstshapewipe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/shapewipe/gstshapewipe.c b/gst/shapewipe/gstshapewipe.c
index 952188014..4029c4943 100644
--- a/gst/shapewipe/gstshapewipe.c
+++ b/gst/shapewipe/gstshapewipe.c
@@ -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);