mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
videodecoder: If a frame is to be dropped, don't update timestamps
This commit is contained in:
parent
b23f4e4ab9
commit
c9c5cd8eef
1 changed files with 6 additions and 1 deletions
|
@ -2167,9 +2167,14 @@ gst_video_decoder_prepare_finish_frame (GstVideoDecoder *
|
|||
if (GST_VIDEO_CODEC_FRAME_IS_DECODE_ONLY (frame))
|
||||
return;
|
||||
|
||||
/* If the frame is to be dropped, we should not update the timestamps
|
||||
* either */
|
||||
if (dropping)
|
||||
return;
|
||||
|
||||
/* If the frame is meant to be output but we don't have an output_buffer
|
||||
* we have a problem :) */
|
||||
if (G_UNLIKELY ((frame->output_buffer == NULL) && !dropping))
|
||||
if (G_UNLIKELY (frame->output_buffer == NULL))
|
||||
goto no_output_buffer;
|
||||
|
||||
if (GST_CLOCK_TIME_IS_VALID (frame->pts)) {
|
||||
|
|
Loading…
Reference in a new issue