From 59821a21e935392c76c31b6fb081ccc5c85582af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 1 Sep 2016 12:39:15 +0200 Subject: [PATCH] vaapi: DISPLAY envvar as dependency In a multiple video cards system, a X11 environment may have different VA capabilities. This patch tracks the DISPLAY environment variable to invalidates the GStreamer features cache. Also tracks WAYLAND_DISPLAY. https://bugzilla.gnome.org/show_bug.cgi?id=770357 --- gst/vaapi/gstvaapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapi.c b/gst/vaapi/gstvaapi.c index 4c4a90d9ab..6996f7ae56 100644 --- a/gst/vaapi/gstvaapi.c +++ b/gst/vaapi/gstvaapi.c @@ -57,7 +57,7 @@ static void plugin_add_dependencies (GstPlugin * plugin) { const gchar *envvars[] = { "GST_VAAPI_ALL_DRIVERS", "LIBVA_DRIVER_NAME", - NULL + "DISPLAY", "WAYLAND_DISPLAY", NULL }; const gchar *kernel_paths[] = { "/dev/dri", NULL }; const gchar *kernel_names[] = { "card", "render" };