mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
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:
parent
51e446345f
commit
ef3f53428d
1 changed files with 4 additions and 4 deletions
|
@ -787,10 +787,10 @@ gst_va_base_transform_import_buffer (GstVaBaseTransform * self,
|
|||
if (!copied)
|
||||
goto invalid_buffer;
|
||||
|
||||
/* strictly speaking this is not needed but let's play safe */
|
||||
if (!gst_buffer_copy_into (buffer, inbuf, GST_BUFFER_COPY_FLAGS |
|
||||
GST_BUFFER_COPY_TIMESTAMPS, 0, -1))
|
||||
return GST_FLOW_ERROR;
|
||||
/* copy metadata, default implemenation of baseclass will copy everything
|
||||
* what we need */
|
||||
GST_BASE_TRANSFORM_CLASS (parent_class)->copy_metadata
|
||||
(GST_BASE_TRANSFORM_CAST (self), inbuf, buffer);
|
||||
|
||||
*buf = buffer;
|
||||
|
||||
|
|
Loading…
Reference in a new issue