mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
plugins: copy input buffer metas
When importing buffers to a VA-base buffer, it is required to copy the metas in the original buffer, otherwise information will be lost, such as GstVideoRegionOfInterestMeta. https://bugzilla.gnome.org/show_bug.cgi?id=768248
This commit is contained in:
parent
863b7fa6e0
commit
ba28c6cff2
1 changed files with 3 additions and 2 deletions
|
@ -1115,8 +1115,9 @@ gst_vaapi_plugin_base_get_input_buffer (GstVaapiPluginBase * plugin,
|
|||
goto error_copy_buffer;
|
||||
|
||||
done:
|
||||
gst_buffer_copy_into (outbuf, inbuf, GST_BUFFER_COPY_FLAGS |
|
||||
GST_BUFFER_COPY_TIMESTAMPS, 0, -1);
|
||||
if (!gst_buffer_copy_into (outbuf, inbuf, GST_BUFFER_COPY_FLAGS |
|
||||
GST_BUFFER_COPY_TIMESTAMPS | GST_BUFFER_COPY_META, 0, -1))
|
||||
return GST_FLOW_ERROR;
|
||||
*outbuf_ptr = outbuf;
|
||||
return GST_FLOW_OK;
|
||||
|
||||
|
|
Loading…
Reference in a new issue