0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

hwdec_cuda: clear vulkan semaphore fd after passing ownership to cuda

This is not technically necessary, because we never touch the fd again
after passing to cuda, but having it there could lead to future code
accidentally using it.
This commit is contained in:
Philip Langdale 2023-06-04 09:56:01 -07:00
parent 7918545caf
commit 3a6738ed8c

View File

@ -176,6 +176,7 @@ static bool cuda_ext_vk_init(struct ra_hwdec_mapper *mapper,
if (ret < 0)
goto error;
// CUDA takes ownership of an imported FD *but not* an imported Handle.
evk->sem_handle.fd = -1;
#else
evk->sync = pl_sync_create(gpu, HANDLE_TYPE);
if (!evk->sync) {