msdk: Add device env in plugin dependencies

Add env vars GST_MSDK_DRM_DEVICE in plugin_add_dependencies to register
msdk plugins according to user's choice in a multi-gpu platform.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5615>
This commit is contained in:
Mengkejiergeli Ba 2023-11-07 16:20:10 +08:00 committed by GStreamer Marge Bot
parent 23c5025619
commit cef1f179c6

View file

@ -90,7 +90,8 @@ static void
plugin_add_dependencies (GstPlugin * plugin)
{
#ifndef _WIN32
const gchar *env_vars[] = { "LIBVA_DRIVER_NAME", NULL };
const gchar *env_vars[] =
{ "LIBVA_DRIVER_NAME", "GST_MSDK_DRM_DEVICE", NULL };
const gchar *kernel_paths[] = { "/dev/dri", NULL };
const gchar *kernel_names[] = { "card", "render", NULL };