From b76fcfd3f71ca82ce5bc8323b8ca236721675825 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Sat, 9 Apr 2016 17:52:28 +1000 Subject: vkupload: copy necessary buffer metadata timestamps, flags, etc --- ext/vulkan/vkupload.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ext/vulkan') diff --git a/ext/vulkan/vkupload.c b/ext/vulkan/vkupload.c index 95c36cfb2..c0f0a9791 100644 --- a/ext/vulkan/vkupload.c +++ b/ext/vulkan/vkupload.c @@ -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; } -- cgit v1.2.3