From 511cc95a448ca5c7843307a89c2a9cb02ccfba4f Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Fri, 27 Jul 2012 10:45:41 +0200 Subject: [PATCH] plugins: prefer X11 rendering over GLX. Prefer X11 display over GLX so that "vaapisink" uses X11, i.e. vaPutSurface(), for rendering instead of texturing. --- gst/vaapi/gstvaapipluginutil.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gst/vaapi/gstvaapipluginutil.c b/gst/vaapi/gstvaapipluginutil.c index ac7efebb39..504d53a8cd 100644 --- a/gst/vaapi/gstvaapipluginutil.c +++ b/gst/vaapi/gstvaapipluginutil.c @@ -64,15 +64,15 @@ static const DisplayMap g_display_map[] = { GST_VAAPI_DISPLAY_TYPE_WAYLAND, gst_vaapi_display_wayland_new }, #endif -#if USE_GLX - { "glx", - GST_VAAPI_DISPLAY_TYPE_GLX, - gst_vaapi_display_glx_new }, -#endif #if USE_X11 { "x11", GST_VAAPI_DISPLAY_TYPE_X11, gst_vaapi_display_x11_new }, +#endif +#if USE_GLX + { "glx", + GST_VAAPI_DISPLAY_TYPE_GLX, + gst_vaapi_display_glx_new }, #endif { NULL, } };