summaryrefslogtreecommitdiffstats
path: root/stream/tvi_v4l2.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-06-29 07:19:49 +0300
committerUoti Urpala <uau@mplayer2.org>2011-06-29 07:23:24 +0300
commit2d187f97509f89faff8a544c05b971a344c9163f (patch)
tree9c9e492f3e07639e891ad9fe20035b26ac6b538d /stream/tvi_v4l2.c
parent017c173d7400a8070cb23a0ead812220037f74be (diff)
downloadmpv-2d187f97509f89faff8a544c05b971a344c9163f.tar.bz2
mpv-2d187f97509f89faff8a544c05b971a344c9163f.tar.xz
stream/tvi_v4l2: Add V4L2 support for OpenBSD (and NetBSD)
Patch by Brad <brad@comstyle.com>.
Diffstat (limited to 'stream/tvi_v4l2.c')
-rw-r--r--stream/tvi_v4l2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/stream/tvi_v4l2.c b/stream/tvi_v4l2.c
index def59ad40d..234a5ac019 100644
--- a/stream/tvi_v4l2.c
+++ b/stream/tvi_v4l2.c
@@ -49,8 +49,12 @@ known issues:
#ifdef HAVE_SYS_SYSINFO_H
#include <sys/sysinfo.h>
#endif
+#ifdef HAVE_SYS_VIDEOIO_H
+#include <sys/videoio.h>
+#else
#include <linux/types.h>
#include <linux/videodev2.h>
+#endif
#include "mp_msg.h"
#include "libmpcodecs/img_format.h"
#include "libmpcodecs/dec_teletext.h"