diff options
author | Dave Robillard <dave@drobilla.net> | 2009-06-25 11:47:30 -0400 |
---|---|---|
committer | Dave Robillard <dave@drobilla.net> | 2009-06-25 11:47:30 -0400 |
commit | 699e4f4d044d8111053b631baba4b324a60b1274 (patch) | |
tree | 2589ff173711852d2ca94feb6b481c948793d94f /gst/shapewipe | |
parent | 218878de5ea48b5acdf36070a73a50fd71f41741 (diff) | |
parent | 1bb23517feced9fb3dddf702e93391c3a969fbf2 (diff) | |
download | gst-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')
-rw-r--r-- | 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 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); |