summaryrefslogtreecommitdiffstats
path: root/gst/shapewipe/gstshapewipe.c
diff options
context:
space:
mode:
authorDave Robillard <dave@drobilla.net>2009-06-25 11:47:30 -0400
committerDave Robillard <dave@drobilla.net>2009-06-25 11:47:30 -0400
commit699e4f4d044d8111053b631baba4b324a60b1274 (patch)
tree2589ff173711852d2ca94feb6b481c948793d94f /gst/shapewipe/gstshapewipe.c
parent218878de5ea48b5acdf36070a73a50fd71f41741 (diff)
parent1bb23517feced9fb3dddf702e93391c3a969fbf2 (diff)
downloadgst-plugins-bad-699e4f4d044d8111053b631baba4b324a60b1274.tar.gz
gst-plugins-bad-699e4f4d044d8111053b631baba4b324a60b1274.tar.bz2
gst-plugins-bad-699e4f4d044d8111053b631baba4b324a60b1274.zip
Merge branch 'master' of git://anongit.freedesktop.org/gstreamer/gst-plugins-bad into fdo
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 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);