Files
obs-studio/plugins
Seth Williams aa1f2dea84 win-capture: Fix Vulkan race condition
This race condition is caused when one thread creates a swap chain,
which calls OBS_CreateSwapchainKHR, at the same time another thread
calls OBS_CreateImageView.

OBS_CreateSwapchainKHR allocates swap data, publishes this into the
data->swaps linked list, then initializes it. Meanwhile,
OBS_CreateImageView is iterating the swaps linked list, to see if the
image matches any swap chain images. Due to the order in
OBS_CreateSwapchainKHR, there's no guarantee this data is initialized
so it often ends up running out of bounds on the swap_images array.

The fix is simply to defer the swap data publish to after init.
2023-11-07 23:48:34 -06:00
..
2023-10-10 13:34:41 +00:00
2023-10-10 13:34:41 +00:00
2023-10-10 13:34:41 +00:00
2023-10-10 13:34:41 +00:00
2023-10-10 13:34:41 +00:00
2023-10-10 13:34:41 +00:00