summaryrefslogtreecommitdiffstats
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
parenta2a0322df9a7005a01aafb5efc32fcc1179d205c (diff)
downloadgst-plugins-bad-6ba122834a4972e0bd1e9950eeed8ea127ea3fb4.tar.gz
gst-plugins-bad-6ba122834a4972e0bd1e9950eeed8ea127ea3fb4.tar.bz2
gst-plugins-bad-6ba122834a4972e0bd1e9950eeed8ea127ea3fb4.zip
shapewipe: Correctly handle 0/1 fps
-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 95218801..4029c494 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);