mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +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)
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue