mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2007>
This commit is contained in:
parent
4c7218d7ae
commit
47a808a4b3
1 changed files with 5 additions and 0 deletions
|
@ -1052,6 +1052,11 @@ gst_va_vpp_import_input_buffer (GstVaVpp * self, GstBuffer * inbuf,
|
||||||
if (!copied)
|
if (!copied)
|
||||||
goto invalid_buffer;
|
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;
|
*buf = buffer;
|
||||||
|
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
|
|
Loading…
Reference in a new issue