vkupload: copy necessary buffer metadata

timestamps, flags, etc
This commit is contained in:
Matthew Waters 2016-04-09 17:52:28 +10:00
parent b73d2586ce
commit b76fcfd3f7

View file

@ -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;
}