summaryrefslogtreecommitdiff
path: root/libavutil/hwcontext_vulkan.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2021-11-12 23:50:10 +0100
committerLynne <dev@lynne.ee>2021-11-13 00:03:51 +0100
commit8449baf9aac2ad86ddb21bb64a51b94010f354e3 (patch)
tree86a890dc41517b9b5dbcfb956ee7ac5066c2a883 /libavutil/hwcontext_vulkan.c
parenta943f527a13d2d6afd38593a2dc1de69e6d0972c (diff)
downloadffmpeg-8449baf9aac2ad86ddb21bb64a51b94010f354e3.tar.gz
hwcontext_vulkan: properly error out if timeline semaphores are unsupported
Missing goto.
Diffstat (limited to 'libavutil/hwcontext_vulkan.c')
-rw-r--r--libavutil/hwcontext_vulkan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index 3c86e2d683..2f72024617 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/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;