diff --git a/multimedia/gstreamer1-plugins-good/files/patch-sys_v4l2_gstv4l2object.c b/multimedia/gstreamer1-plugins-good/files/patch-sys_v4l2_gstv4l2object.c index de96ece3b07e..213c9e381996 100644 --- a/multimedia/gstreamer1-plugins-good/files/patch-sys_v4l2_gstv4l2object.c +++ b/multimedia/gstreamer1-plugins-good/files/patch-sys_v4l2_gstv4l2object.c @@ -1,21 +1,30 @@ ---- sys/v4l2/gstv4l2object.c.orig 2026-01-27 17:02:33 UTC +--- sys/v4l2/gstv4l2object.c.orig 2026-02-26 01:44:06 UTC +++ sys/v4l2/gstv4l2object.c -@@ -573,7 +573,7 @@ v4l2_mmap_wrapper (gpointer start, gsize length, gint +@@ -574,7 +574,7 @@ v4l2_mmap_wrapper (gpointer start, gsize length, gint #endif /* SIZEOF_OFF_T < 8 */ -#if defined(__linux__) && !defined(__GLIBC__) +#if !defined(__GLIBC__) /* v4l2_ioctl always takes request as unsigned long int, not ioctl_req_t */ static gint v4l2_ioctl_wrapper (gint fd, ioctl_req_t request, ...) -@@ -5385,7 +5385,9 @@ gst_v4l2_object_probe_caps (GstV4l2Object * v4l2object +@@ -3449,7 +3449,7 @@ gst_v4l2_object_is_dmabuf_supported (GstV4l2Object * v + + /* Expected to fail, but ENOTTY tells us that it is not implemented. */ + v4l2object->ioctl (v4l2object->video_fd, VIDIOC_EXPBUF, &expbuf); +- if (errno == ENOTTY) ++ if (errno == ENOTTY || errno == EINVAL) + ret = FALSE; + + return ret; +@@ -5393,7 +5393,9 @@ gst_v4l2_object_probe_caps (GstV4l2Object * v4l2object if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_CROPCAP, &cropcap) < 0) { switch (errno) { +#ifdef ENODATA case ENODATA: +#endif case ENOTTY: GST_INFO_OBJECT (v4l2object->dbg_obj, "Driver does not support VIDIOC_CROPCAP (%s), assuming pixel aspect ratio 1/1", diff --git a/multimedia/gstreamer1-plugins-v4l2/Makefile b/multimedia/gstreamer1-plugins-v4l2/Makefile index 4408ad8be231..eb8845bad9fd 100644 --- a/multimedia/gstreamer1-plugins-v4l2/Makefile +++ b/multimedia/gstreamer1-plugins-v4l2/Makefile @@ -1,17 +1,17 @@ -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= multimedia COMMENT= GStreamer Video 4 Linux 2 source plugin BUILD_DEPENDS= v4l_compat>0:multimedia/v4l_compat LIB_DEPENDS= libv4l2.so:multimedia/libv4l RUN_DEPENDS= webcamd:multimedia/webcamd MASTERDIR= ${.CURDIR:H:H}/multimedia/gstreamer1-plugins PLIST= ${.CURDIR}/pkg-plist DIST= good GST_PLUGIN= v4l2 .include "${MASTERDIR}/Makefile"