mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +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,
|
gst_vulkan_upload_prepare_output_buffer (GstBaseTransform * bt,
|
||||||
GstBuffer * inbuf, GstBuffer ** outbuf)
|
GstBuffer * inbuf, GstBuffer ** outbuf)
|
||||||
{
|
{
|
||||||
|
GstBaseTransformClass *bclass = GST_BASE_TRANSFORM_GET_CLASS (bt);
|
||||||
GstVulkanUpload *vk_upload = GST_VULKAN_UPLOAD (bt);
|
GstVulkanUpload *vk_upload = GST_VULKAN_UPLOAD (bt);
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret;
|
||||||
|
|
||||||
|
@ -818,6 +819,12 @@ gst_vulkan_upload_prepare_output_buffer (GstBaseTransform * bt,
|
||||||
}
|
}
|
||||||
} while (FALSE);
|
} 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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue