va: basetransform: Use copy_metadata() at buffer import.

Instead of using only gst_buffer_copy_into() use copy_metadata()
vmethod to copy what's needed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2495>
This commit is contained in:
Víctor Manuel Jáquez Leal 2021-08-23 18:44:30 +02:00
parent 51e446345f
commit ef3f53428d

View file

@ -787,10 +787,10 @@ gst_va_base_transform_import_buffer (GstVaBaseTransform * self,
if (!copied) if (!copied)
goto invalid_buffer; goto invalid_buffer;
/* strictly speaking this is not needed but let's play safe */ /* copy metadata, default implemenation of baseclass will copy everything
if (!gst_buffer_copy_into (buffer, inbuf, GST_BUFFER_COPY_FLAGS | * what we need */
GST_BUFFER_COPY_TIMESTAMPS, 0, -1)) GST_BASE_TRANSFORM_CLASS (parent_class)->copy_metadata
return GST_FLOW_ERROR; (GST_BASE_TRANSFORM_CAST (self), inbuf, buffer);
*buf = buffer; *buf = buffer;