vkupload: fix the refactored frame copy

When refactoring the code in 743c425f64,
the wrong GstBuffer has been used to copy to,
leading to a failing frame copy.

The bug has been discovered running
elements_vkcolorconvert.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9373>
This commit is contained in:
Stéphane Cerveau 2025-07-10 18:23:30 +02:00 committed by Víctor Manuel Jáquez Leal
parent 0d1cd40097
commit d1022fb469

View File

@ -795,7 +795,7 @@ _raw_to_image_perform (gpointer impl, GstBuffer * inbuf, GstBuffer ** outbuf)
goto unlock_error;
}
if (!_copy_frames (&raw->in_info, inbuf, *outbuf)) {
if (!_copy_frames (&raw->in_info, inbuf, in_vk_copy)) {
GST_ERROR_OBJECT (raw->upload, "Failed to copy to Vulkan buffer");
goto unlock_error;
}