gstreamer: Announce support for video meta on the input side

This allows handling input buffers with non-default strides, which was
already handled fine by the element code.

Without this, potentially expensive conversion was needed.
This commit is contained in:
Sebastian Dröge 2023-01-11 15:11:48 +02:00 committed by Hassene Tmar
parent c5b166491c
commit 785ba05bca

View file

@ -792,7 +792,9 @@ gst_svtav1enc_propose_allocation (GstVideoEncoder * encoder, GstQuery * query)
GST_DEBUG_OBJECT (svtav1enc, "propose_allocation");
return TRUE;
gst_query_add_allocation_meta(query, GST_VIDEO_META_API_TYPE, NULL);
return GST_VIDEO_ENCODER_CLASS (gst_svtav1enc_parent_class)->propose_allocation (encoder, query);
}
static gboolean