mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
msdk: verify the driver name
We need to make sure the Intel graphics card is used in a dual GPU system. Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/895
This commit is contained in:
parent
e8fd000af0
commit
5f2f289b7e
1 changed files with 2 additions and 1 deletions
|
@ -94,7 +94,8 @@ get_device_id (void)
|
|||
dev = (GUdevDevice *) l->data;
|
||||
|
||||
parent = g_udev_device_get_parent (dev);
|
||||
if (strcmp (g_udev_device_get_subsystem (parent), "pci") != 0) {
|
||||
if (strcmp (g_udev_device_get_subsystem (parent), "pci") != 0 ||
|
||||
strcmp (g_udev_device_get_driver (parent), "i915") != 0) {
|
||||
g_object_unref (parent);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue