projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8fd000
)
msdk: verify the driver name
author
Haihao Xiang
<haihao.xiang@intel.com>
Tue, 12 Feb 2019 02:53:55 +0000
(10:53 +0800)
committer
Haihao Xiang
<haihao.xiang@intel.com>
Tue, 12 Feb 2019 04:13:31 +0000
(12:13 +0800)
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
sys/msdk/gstmsdkcontext.c
patch
|
blob
|
history
diff --git
a/sys/msdk/gstmsdkcontext.c
b/sys/msdk/gstmsdkcontext.c
index
cf07110
..
860722a
100644
(file)
--- a/
sys/msdk/gstmsdkcontext.c
+++ b/
sys/msdk/gstmsdkcontext.c
@@
-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;
}