mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
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:
parent
23c5025619
commit
cef1f179c6
1 changed files with 2 additions and 1 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Reference in a new issue