From 6ba122834a4972e0bd1e9950eeed8ea127ea3fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 23 Jun 2009 18:23:13 +0200 Subject: shapewipe: Correctly handle 0/1 fps --- gst/shapewipe/gstshapewipe.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gst') 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); -- cgit v1.2.1