From c5e99ce6dbf7dc23b5818d9cf609a234368d2ae3 Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Wed, 15 Nov 2023 16:55:06 -0500 Subject: [PATCH] vaapi: add device env to plugin dependencies In a multi-gpu system, each device may support different features. Add GST_VAAPI_DRM_DEVICE to plugin dependencies to ensure registered features are re-evaluated according to user specified device. Part-of: --- subprojects/gstreamer-vaapi/gst/vaapi/gstvaapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gstreamer-vaapi/gst/vaapi/gstvaapi.c b/subprojects/gstreamer-vaapi/gst/vaapi/gstvaapi.c index 8f4bb0ec92..f91d140d56 100644 --- a/subprojects/gstreamer-vaapi/gst/vaapi/gstvaapi.c +++ b/subprojects/gstreamer-vaapi/gst/vaapi/gstvaapi.c @@ -51,7 +51,7 @@ static void plugin_add_dependencies (GstPlugin * plugin) { const gchar *envvars[] = { "GST_VAAPI_ALL_DRIVERS", "LIBVA_DRIVER_NAME", - "DISPLAY", "WAYLAND_DISPLAY", NULL + "DISPLAY", "WAYLAND_DISPLAY", "GST_VAAPI_DRM_DEVICE", NULL }; const gchar *kernel_paths[] = { "/dev/dri", NULL }; const gchar *kernel_names[] = { "card", "render", NULL };