diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-09-10 15:10:46 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-09-20 13:06:38 +0300 |
commit | f3601164d2a63b27f19dc6d1a4227302a59263e5 (patch) | |
tree | 15bd13494c933cfd4245e920af7c761c57f8621a /gst-libs/gst/video/gstvideodecoder.h | |
parent | e0811f890f402b48cd5a7d901caa7f38d50848bf (diff) | |
download | gstreamer-plugins-base-f3601164d2a63b27f19dc6d1a4227302a59263e5.tar.gz |
videodecoder: Add properties to automatically request sync points and vfunc to allow subclasses to handle packet loss / missing data
Subclasses could use the new vfunc to activate packet loss concealment,
for example.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1274>
Diffstat (limited to 'gst-libs/gst/video/gstvideodecoder.h')
-rw-r--r-- | gst-libs/gst/video/gstvideodecoder.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gst-libs/gst/video/gstvideodecoder.h b/gst-libs/gst/video/gstvideodecoder.h index a895c81be..a38287336 100644 --- a/gst-libs/gst/video/gstvideodecoder.h +++ b/gst-libs/gst/video/gstvideodecoder.h @@ -344,8 +344,22 @@ struct _GstVideoDecoderClass GstVideoCodecFrame *frame, GstMeta * meta); + /** + * GstVideoDecoderClass::handle_missing_data: + * @decoder: The #GstVideoDecoder + * @timestamp: Timestamp of the missing data + * @duration: Duration of the missing data + * + * Returns: %TRUE if the decoder should be drained afterwards. + * + * Since: 1.20 + */ + gboolean (*handle_missing_data) (GstVideoDecoder *decoder, + GstClockTime timestamp, + GstClockTime duration); + /*< private >*/ - gpointer padding[GST_PADDING_LARGE-6]; + gpointer padding[GST_PADDING_LARGE-7]; }; /** |