]> gitweb @ CieloNegro.org - pkgsrc-cinelerra-cv.git/blobdiff - patches/patch-vdevicev4l_h
wip...
[pkgsrc-cinelerra-cv.git] / patches / patch-vdevicev4l_h
diff --git a/patches/patch-vdevicev4l_h b/patches/patch-vdevicev4l_h
new file mode 100644 (file)
index 0000000..642c05a
--- /dev/null
@@ -0,0 +1,28 @@
+$NetBSD$
+
+--- cinelerra/vdevicev4l.h.orig        2010-01-29 08:20:15.000000000 +0000
++++ cinelerra/vdevicev4l.h
+@@ -23,7 +23,9 @@
+ #define VDEVICEV4L_H
+ #include "vdevicebase.h"
+-#include <linux/videodev.h>
++#if defined(HAVE_LINUX_VIDEODEV_H)
++#  include <linux/videodev.h>
++#endif
+ #include "videodevice.inc"
+ class VDeviceV4L : public VDeviceBase
+@@ -66,10 +68,12 @@ private:
+       int colormodel;
+ // Video4Linux
++#if defined(HAVE_LINUX_VIDEODEV_H)
+       struct video_capability cap1;
+       struct video_window window_params;
+       struct video_picture picture_params;
+       struct video_mbuf capture_params;  // Capture for Video4Linux
++#endif
+ // Common
+       char *capture_buffer;      // sequentual capture buffers for v4l1 or read buffer for v4l2