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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5675>
This commit is contained in:
U. Artie Eoff 2023-11-15 16:55:06 -05:00 committed by GStreamer Marge Bot
parent 6ee94cd8c7
commit c5e99ce6db

View file

@ -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 };