1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

hwcontext_vulkan: properly error out if timeline semaphores are unsupported

Missing goto.
This commit is contained in:
Lynne
2021-11-12 23:50:10 +01:00
parent a943f527a1
commit 8449baf9aa

View File

@@ -1215,6 +1215,7 @@ static int vulkan_device_create_internal(AVHWDeviceContext *ctx,
if (!dev_features_1_2.timelineSemaphore) {
av_log(ctx, AV_LOG_ERROR, "Device does not support timeline semaphores!\n");
err = AVERROR(ENOSYS);
goto end;
}
p->device_features_1_2.timelineSemaphore = 1;