forked from FFmpeg/FFmpeg
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.
This commit is contained in:
parent
6025e66f98
commit
251e4ad0ad
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
av_log(ctx, AV_LOG_VERBOSE, "Using %s extension \"%s\"\n", mod, tstr);
|
||||||
ADD_VAL_TO_LIST(extension_names, extensions_found, token);
|
ADD_VAL_TO_LIST(extension_names, extensions_found, token);
|
||||||
} else {
|
} 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);
|
mod, token);
|
||||||
err = AVERROR(EINVAL);
|
|
||||||
goto fail;
|
|
||||||
}
|
}
|
||||||
token = av_strtok(NULL, "+", &save);
|
token = av_strtok(NULL, "+", &save);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue