mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
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.
This commit is contained in:
parent
b7e5a48e5e
commit
6b03d30162
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue