mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 02:58:24 +00:00
shapewipe: Correctly handle 0/1 fps
This commit is contained in:
parent
a2a0322df9
commit
6ba122834a
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue