mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
vkupload: copy necessary buffer metadata
timestamps, flags, etc
This commit is contained in:
parent
b73d2586ce
commit
b76fcfd3f7
1 changed files with 7 additions and 0 deletions
|
@ -787,6 +787,7 @@ static GstFlowReturn
|
|||
gst_vulkan_upload_prepare_output_buffer (GstBaseTransform * bt,
|
||||
GstBuffer * inbuf, GstBuffer ** outbuf)
|
||||
{
|
||||
GstBaseTransformClass *bclass = GST_BASE_TRANSFORM_GET_CLASS (bt);
|
||||
GstVulkanUpload *vk_upload = GST_VULKAN_UPLOAD (bt);
|
||||
GstFlowReturn ret;
|
||||
|
||||
|
@ -818,6 +819,12 @@ gst_vulkan_upload_prepare_output_buffer (GstBaseTransform * bt,
|
|||
}
|
||||
} while (FALSE);
|
||||
|
||||
if (ret == GST_FLOW_OK) {
|
||||
/* basetransform doesn't unref if they're the same */
|
||||
if (inbuf != *outbuf)
|
||||
bclass->copy_metadata (bt, inbuf, *outbuf);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue