summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Sequeira <phsequei@gmail.com>2019-11-08 22:39:42 -0500
committerPhilip Langdale <github.philipl@overt.org>2019-11-10 20:59:17 -0800
commit85aa9635e036339777a96709c3871e3e4aa768b9 (patch)
tree0423d65dae1839887b4b8f2c1928ccf549de1188
parent07fd511e143f8fd17d9e662ca0c060527c29e0e1 (diff)
downloadmpv-85aa9635e036339777a96709c3871e3e4aa768b9.tar.bz2
mpv-85aa9635e036339777a96709c3871e3e4aa768b9.tar.xz
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.
-rw-r--r--video/out/hwdec/hwdec_vaapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/hwdec/hwdec_vaapi.c b/video/out/hwdec/hwdec_vaapi.c
index 9640f166dd..8eaf0df4e6 100644
--- a/video/out/hwdec/hwdec_vaapi.c
+++ b/video/out/hwdec/hwdec_vaapi.c
@@ -108,10 +108,10 @@ static void uninit(struct ra_hwdec *hw)
}
const static vaapi_interop_init interop_inits[] = {
-#if HAVE_GL
+#if HAVE_VAAPI_EGL
vaapi_gl_init,
#endif
-#if HAVE_VULKAN
+#if HAVE_VAAPI_VULKAN
vaapi_vk_init,
#endif
NULL