ports/multimedia/mplayer/files/patch-stream-tvi_v4l2.c
Michael Scheidell dbadfe7b3a - Update to 1.0.r20111218
PR:		ports/163969
Submitted by:	thomas.e.zander@googlemail.com (maintainer)
Approved by:	gabor (mentor)
----------------------------------------------------------------------
2012-01-15 22:31:53 +00:00

25 lines
641 B
C

--- stream/tvi_v4l2.c.orig 2011-06-26 16:42:35.000000000 +0200
+++ stream/tvi_v4l2.c 2011-11-26 20:09:03.369654854 +0100
@@ -52,7 +52,6 @@
#ifdef HAVE_SYS_VIDEOIO_H
#include <sys/videoio.h>
#else
-#include <linux/types.h>
#include <linux/videodev2.h>
#endif
#include "mp_msg.h"
@@ -62,6 +61,14 @@
#include "tv.h"
#include "audio_in.h"
+#include <libv4l2.h>
+#define open v4l2_open
+#define close v4l2_close
+#define dup v4l2_dup
+#define ioctl v4l2_ioctl
+#define mmap v4l2_mmap
+#define munmap v4l2_munmap
+
#define info tvi_info_v4l2
static tvi_handle_t *tvi_init_v4l2(tv_param_t* tv_param);
/* information about this file */