mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
[MOVED FROM BAD 14/29] shapewipe: Correctly handle 0/1 fps
This commit is contained in:
parent
809d15428c
commit
76a21dec7f
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);
|
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);
|
ret = gst_pad_set_caps (self->srcpad, caps);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue