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:
Sebastian Dröge 2022-11-14 20:38:09 +02:00 committed by GStreamer Marge Bot
parent 721f059397
commit 416dae67b2

View file

@ -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;