vaapiplugin: fix gst_vaapi_ensure_display() to use system defaults.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 11 Jan 2012 13:13:06 +0000 (14:13 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 12 Jan 2012 15:09:08 +0000 (16:09 +0100)
This ensures the display name provided to gst_vaapi_display_*_new()
maps to the system defaults, instead of forcing "" that could be different
from the current DISPLAY name.

gst/vaapi/gstvaapipluginutil.c

index 84e89d5..0db0908 100644 (file)
@@ -62,9 +62,9 @@ gst_vaapi_ensure_display (gpointer element, GstVaapiDisplay **display)
   /* If no neighboor, or application not interested, use system default */
   if (!*display)
 #if USE_VAAPI_GLX
-    *display = gst_vaapi_display_glx_new ("");
+    *display = gst_vaapi_display_glx_new (NULL);
 #else
-    *display = gst_vaapi_display_x11_new ("");
+    *display = gst_vaapi_display_x11_new (NULL);
 #endif
 
   /* FIXME allocator should return NULL in case of failure */