Line 0
Link Here
|
|
|
1 |
--- gst-libs/gst/vaapi/gstvaapidisplay_drm.c.orig 2019-12-02 20:09:01 UTC |
2 |
+++ gst-libs/gst/vaapi/gstvaapidisplay_drm.c |
3 |
@@ -108,6 +108,7 @@ get_default_device_path (GstVaapiDisplay * display) |
4 |
udev_list_entry_foreach (l, udev_enumerate_get_list_entry (e)) { |
5 |
syspath = udev_list_entry_get_name (l); |
6 |
device = udev_device_new_from_syspath (udev, syspath); |
7 |
+#ifdef __linux__ |
8 |
parent = udev_device_get_parent (device); |
9 |
|
10 |
for (i = 0; allowed_subsystems[i] != NULL; i++) |
11 |
@@ -119,7 +120,7 @@ get_default_device_path (GstVaapiDisplay * display) |
12 |
udev_device_unref (device); |
13 |
continue; |
14 |
} |
15 |
- |
16 |
+#endif |
17 |
devpath = udev_device_get_devnode (device); |
18 |
fd = open (devpath, O_RDWR | O_CLOEXEC); |
19 |
if (fd < 0) { |