mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
videodecoder: Consider having output data when the subclass drops a frame
The subclass might drop a frame for QoS reasons (e.g. vpxdec) and if all frames are dropped because of that it wouldn't make sense to post an error message on EOS. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3408>
This commit is contained in:
parent
721f059397
commit
416dae67b2
1 changed files with 3 additions and 0 deletions
|
@ -3270,6 +3270,9 @@ gst_video_decoder_drop_frame (GstVideoDecoder * dec, GstVideoCodecFrame * frame)
|
|||
/* now free the frame */
|
||||
gst_video_decoder_release_frame (dec, frame);
|
||||
|
||||
/* store that we have valid decoded data */
|
||||
dec->priv->had_output_data = TRUE;
|
||||
|
||||
GST_VIDEO_DECODER_STREAM_UNLOCK (dec);
|
||||
|
||||
return GST_FLOW_OK;
|
||||
|
|
Loading…
Reference in a new issue