-
Notifications
You must be signed in to change notification settings - Fork 761
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multimedia/gstreamer1-vaapi: Add a patch to fix a crash.
PR: 245722 Submitted by: Oleg Sidorkin <[email protected]> More context: FreeBSDDesktop/libudev-devd#19
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
multimedia/gstreamer1-vaapi/files/patch-gst-libs_gst_vaapi_gstvaapidisplay__drm.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Workaround for an incompatibility bug in our libudev-devd. | ||
See https://github.com/FreeBSDDesktop/libudev-devd/issues/19 | ||
|
||
--- gst-libs/gst/vaapi/gstvaapidisplay_drm.c.orig 2019-12-02 20:09:01 UTC | ||
+++ gst-libs/gst/vaapi/gstvaapidisplay_drm.c | ||
@@ -108,6 +108,7 @@ get_default_device_path (GstVaapiDisplay * display) | ||
udev_list_entry_foreach (l, udev_enumerate_get_list_entry (e)) { | ||
syspath = udev_list_entry_get_name (l); | ||
device = udev_device_new_from_syspath (udev, syspath); | ||
+#ifdef __linux__ | ||
parent = udev_device_get_parent (device); | ||
|
||
for (i = 0; allowed_subsystems[i] != NULL; i++) | ||
@@ -119,7 +120,7 @@ get_default_device_path (GstVaapiDisplay * display) | ||
udev_device_unref (device); | ||
continue; | ||
} | ||
- | ||
+#endif | ||
devpath = udev_device_get_devnode (device); | ||
fd = open (devpath, O_RDWR | O_CLOEXEC); | ||
if (fd < 0) { |