[gst-cvs] gst-plugins-bad: shapewipe: Correctly handle 0/1 fps
Sebastian Dröge
slomo at kemper.freedesktop.org
Tue Jun 23 09:24:11 PDT 2009
Module: gst-plugins-bad
Branch: master
Commit: 6ba122834a4972e0bd1e9950eeed8ea127ea3fb4
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=6ba122834a4972e0bd1e9950eeed8ea127ea3fb4
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Tue Jun 23 18:23:13 2009 +0200
shapewipe: Correctly handle 0/1 fps
---
gst/shapewipe/gstshapewipe.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/gst/shapewipe/gstshapewipe.c b/gst/shapewipe/gstshapewipe.c
index 9521880..4029c49 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);
More information about the Gstreamer-commits
mailing list