mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
v4l2videodec: set frame duration according to framerate
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1953>
This commit is contained in:
parent
4277af3219
commit
b962126b06
1 changed files with 1 additions and 0 deletions
|
@ -732,6 +732,7 @@ gst_v4l2_video_dec_loop (GstVideoDecoder * decoder)
|
|||
if (oldest_frame)
|
||||
gst_video_codec_frame_unref (oldest_frame);
|
||||
|
||||
frame->duration = self->v4l2capture->duration;
|
||||
frame->output_buffer = buffer;
|
||||
buffer = NULL;
|
||||
ret = gst_video_decoder_finish_frame (decoder, frame);
|
||||
|
|
Loading…
Reference in a new issue