From 47a808a4b352961140afb0d4dae4e7050c5b4b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Tue, 2 Feb 2021 16:22:34 +0100 Subject: [PATCH] va: vpp: copy input buffer flags and timestamps Strictly speaking right now it's not required do this copy, but let's play safe and assume in the future this metadata might be required while doing the postprocessing. Part-of: --- sys/va/gstvavpp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/va/gstvavpp.c b/sys/va/gstvavpp.c index 5d47947620..e5fc224646 100644 --- a/sys/va/gstvavpp.c +++ b/sys/va/gstvavpp.c @@ -1052,6 +1052,11 @@ gst_va_vpp_import_input_buffer (GstVaVpp * self, GstBuffer * inbuf, 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; + *buf = buffer; return GST_FLOW_OK;