aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/etc/poudriere.d/patches/gstreamer1-plugins-good-fix-v4l-einval.patch.pkg_repository
blob: 503a95d0027acee80e2a187f063ffd180b61687e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- multimedia/gstreamer1-plugins-good/files/patch-sys_v4l2_gstv4l2object.c	2024-11-08 16:46:07.003565000 -0500
+++ multimedia/gstreamer1-plugins-good/files/patch-sys_v4l2_gstv4l2object.c	2024-11-08 16:46:11.030787000 -0500
@@ -1,6 +1,15 @@
---- sys/v4l2/gstv4l2object.c.orig	2024-09-19 10:01:21 UTC
+--- sys/v4l2/gstv4l2object.c.orig	2024-11-08 18:59:59 UTC
 +++ sys/v4l2/gstv4l2object.c
-@@ -5078,7 +5078,9 @@ gst_v4l2_object_probe_caps (GstV4l2Object * v4l2object
+@@ -3159,7 +3159,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;
+@@ -4886,7 +4886,9 @@ gst_v4l2_object_probe_caps (GstV4l2Object * v4l2object
      if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_CROPCAP, &cropcap) < 0) {
  
        switch (errno) {