summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-02-23 09:25:51 -0600
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-02-27 10:02:14 -0600
commitba28c6cff2c7e6675d227c2bcbdd8c4a05f9824f (patch)
tree195c8b01df20b87320472febed4b4a932de162f3
parent863b7fa6e08af76a703773c3bb69b10cbacb9810 (diff)
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
-rw-r--r--gst/vaapi/gstvaapipluginbase.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/vaapi/gstvaapipluginbase.c b/gst/vaapi/gstvaapipluginbase.c
index b5dd1df5..08f1e0da 100644
--- a/gst/vaapi/gstvaapipluginbase.c
+++ b/gst/vaapi/gstvaapipluginbase.c
@@ -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;