From 416dae67b201f604d26eec91f0c8015568333bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 14 Nov 2022 20:38:09 +0200 Subject: [PATCH] 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: --- .../gst-plugins-base/gst-libs/gst/video/gstvideodecoder.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideodecoder.c b/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideodecoder.c index f1ce52fd1f..016aa7dd9f 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideodecoder.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideodecoder.c @@ -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;