diff options
author | Lynne <dev@lynne.ee> | 2020-05-12 20:08:46 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2020-05-12 21:32:32 +0100 |
commit | 251e4ad0ad1d814333f333a8e8168272b449354a (patch) | |
tree | 74206fe2f980ef3f3589d5af023f1a9c4e32a341 /libavutil/hwcontext_vulkan.c | |
parent | 6025e66f987791037b9f5d1b886b32b4458800b9 (diff) | |
download | ffmpeg-251e4ad0ad1d814333f333a8e8168272b449354a.tar.gz |
hwcontext_vulkan: don't error on unavailable user-specified extensions
Only warn instead. API users can find out which extensions were unavailable
by using the enabled_inst_extensions and enabled_dev_extensions fields.
This eliminates having to trial-and-error to find which extensions were missing.
Diffstat (limited to 'libavutil/hwcontext_vulkan.c')
-rw-r--r-- | libavutil/hwcontext_vulkan.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 86f37ef94c..e3df428049 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -374,10 +374,8 @@ static int check_extensions(AVHWDeviceContext *ctx, int dev, AVDictionary *opts, av_log(ctx, AV_LOG_VERBOSE, "Using %s extension \"%s\"\n", mod, tstr); ADD_VAL_TO_LIST(extension_names, extensions_found, token); } else { - av_log(ctx, AV_LOG_ERROR, "%s extension \"%s\" not found!\n", + av_log(ctx, AV_LOG_WARNING, "%s extension \"%s\" not found, excluding.\n", mod, token); - err = AVERROR(EINVAL); - goto fail; } token = av_strtok(NULL, "+", &save); } |