From 710872bc22c772d1ea8eb9a0383f5755dae08698 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 27 Sep 2015 20:09:10 +0200 Subject: vaapi: remove dependency on X11 There are at least 2 ways of using VAAPI without X11 (Wayland, DRM). Remove the X11 requirement from the decoder part and the EGL interop. This will be used by a following commit, which adds Wayland support. The worst about this is the decoder part, which includes a bad hack for using the decoder without any VO interop (also known as "vaapi-copy" mode). Separate the X11 parts so that they're self-contained. For the EGL interop code we do something similar (it's kept slightly simpler, because it essentially only has to translate between our silly MPGetNativeDisplay abstraction and the vaGetDisplay...() call). --- video/out/opengl/hwdec_vaglx.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out/opengl/hwdec_vaglx.c') diff --git a/video/out/opengl/hwdec_vaglx.c b/video/out/opengl/hwdec_vaglx.c index 6ad269ae3d..34e8ee937e 100644 --- a/video/out/opengl/hwdec_vaglx.c +++ b/video/out/opengl/hwdec_vaglx.c @@ -22,6 +22,7 @@ #include #include +#include #include "video/out/x11_common.h" #include "hwdec.h" -- cgit v1.2.3