mirror of https://github.com/mpv-player/mpv
build: fix compilation conditions for vaapi interop inits
This makes the condition for including each init match the condition for compiling the file that defines it. It's possible to e.g. HAVE_GL and HAVE_VAAPI without HAVE_VAAPI_EGL, which resulted in "undefined reference to `vaapi_gl_init'" with the old code.
This commit is contained in:
parent
07fd511e14
commit
85aa9635e0
|
@ -108,10 +108,10 @@ static void uninit(struct ra_hwdec *hw)
|
||||||
}
|
}
|
||||||
|
|
||||||
const static vaapi_interop_init interop_inits[] = {
|
const static vaapi_interop_init interop_inits[] = {
|
||||||
#if HAVE_GL
|
#if HAVE_VAAPI_EGL
|
||||||
vaapi_gl_init,
|
vaapi_gl_init,
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_VULKAN
|
#if HAVE_VAAPI_VULKAN
|
||||||
vaapi_vk_init,
|
vaapi_vk_init,
|
||||||
#endif
|
#endif
|
||||||
NULL
|
NULL
|
||||||
|
|
Loading…
Reference in New Issue