Date: Wed, 5 Aug 2020 17:22:27 +0000 (UTC) From: Gleb Popov <arrowd@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r544235 - in head/multimedia/gstreamer1-vaapi: . files Message-ID: <202008051722.075HMRfR006775@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: arrowd Date: Wed Aug 5 17:22:26 2020 New Revision: 544235 URL: https://svnweb.freebsd.org/changeset/ports/544235 Log: multimedia/gstreamer1-vaapi: Add a patch to fix a crash. PR: 245722 Submitted by: Oleg Sidorkin <osidorkin@gmail.com> More context: https://github.com/FreeBSDDesktop/libudev-devd/issues/19 Added: head/multimedia/gstreamer1-vaapi/files/ head/multimedia/gstreamer1-vaapi/files/patch-gst-libs_gst_vaapi_gstvaapidisplay__drm.c (contents, props changed) Modified: head/multimedia/gstreamer1-vaapi/Makefile Modified: head/multimedia/gstreamer1-vaapi/Makefile ============================================================================== --- head/multimedia/gstreamer1-vaapi/Makefile Wed Aug 5 17:16:19 2020 (r544234) +++ head/multimedia/gstreamer1-vaapi/Makefile Wed Aug 5 17:22:26 2020 (r544235) @@ -3,6 +3,7 @@ PORTNAME= gstreamer1-vaapi PORTVERSION= 1.16.2 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= https://gstreamer.freedesktop.org/src/gstreamer-vaapi/ DISTNAME= gstreamer-vaapi-${PORTVERSION} Added: head/multimedia/gstreamer1-vaapi/files/patch-gst-libs_gst_vaapi_gstvaapidisplay__drm.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/gstreamer1-vaapi/files/patch-gst-libs_gst_vaapi_gstvaapidisplay__drm.c Wed Aug 5 17:22:26 2020 (r544235) @@ -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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008051722.075HMRfR006775>