vd_lavc: add Vulkan hardware decoding to autoprobe

On platforms where it is unstable/experimental, it is disabled behind
environmental variable, so safe to probe it there too.

Fixes usage of hwdec=yes with gpu-api=vulkan, where hwdec would be not
enabled. Position it after older and more stable variants. That means
the -copy variant of the other API will likely be prefered.
This commit is contained in:
Kacper Michajłow 2024-06-22 15:41:14 +02:00
parent a6e13f41eb
commit 2aab3fc381
1 changed files with 2 additions and 0 deletions

View File

@ -245,6 +245,8 @@ const struct autoprobe_info hwdec_autoprobe_info[] = {
{"nvdec-copy", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
{"vaapi", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
{"vaapi-copy", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
{"vulkan", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
{"vulkan-copy", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
{"vdpau", HWDEC_FLAG_AUTO},
{"vdpau-copy", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
{"drm", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},