plugins: try to allocate a GLX display first over an X11 one.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 6 Jun 2013 09:36:03 +0000 (05:36 -0400)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 27 Jun 2013 08:19:37 +0000 (10:19 +0200)
If the gstreamer-vaapi plug-in elements are built with GLX support, then
try to allocate a GstVaapiDisplayGLX first before resorting to a VA/X11
display next.

https://bugzilla.gnome.org/show_bug.cgi?id=701742

gst/vaapi/gstvaapipluginutil.c

index 855952a..fe7b2b7 100644 (file)
@@ -68,16 +68,16 @@ static const DisplayMap g_display_map[] = {
       GST_VAAPI_DISPLAY_TYPE_WAYLAND,
       gst_vaapi_display_wayland_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
+#if USE_X11
+    { "x11",
+      GST_VAAPI_DISPLAY_TYPE_X11,
+      gst_vaapi_display_x11_new },
+#endif
 #if USE_DRM
     { "drm",
       GST_VAAPI_DISPLAY_TYPE_DRM,