From 6b03d30162205f27b4158e44b0b9f98baa95ab99 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Wed, 11 Jan 2012 14:13:06 +0100 Subject: [PATCH] vaapiplugin: fix gst_vaapi_ensure_display() to use system defaults. 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/vaapi/gstvaapipluginutil.c b/gst/vaapi/gstvaapipluginutil.c index 84e89d59b2..0db0908169 100644 --- a/gst/vaapi/gstvaapipluginutil.c +++ b/gst/vaapi/gstvaapipluginutil.c @@ -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 */