plugins: prefer X11 rendering over GLX.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 27 Jul 2012 08:45:41 +0000 (10:45 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 27 Jul 2012 08:45:41 +0000 (10:45 +0200)
Prefer X11 display over GLX so that "vaapisink" uses X11, i.e. vaPutSurface(),
for rendering instead of texturing.

gst/vaapi/gstvaapipluginutil.c

index ac7efeb..504d53a 100644 (file)
@@ -64,16 +64,16 @@ 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, }
 };