summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);