hwcontext_vulkan: properly error out if timeline semaphores are unsupported

Missing goto.
pull/374/head
Lynne 3 years ago
parent a943f527a1
commit 8449baf9aa
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
  1. 1
      libavutil/hwcontext_vulkan.c

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

Loading…
Cancel
Save