0cb0c9df50
cards. tvtime processes the input from a capture card and displays it on a computer monitor or projector.
26 lines
785 B
Text
26 lines
785 B
Text
$NetBSD: patch-ac,v 1.1.1.1 2008/09/15 13:15:46 jmcneill Exp $
|
|
|
|
--- src/videoinput.c.orig 2005-09-07 23:13:37.000000000 -0400
|
|
+++ src/videoinput.c
|
|
@@ -35,8 +35,13 @@
|
|
#ifdef HAVE_CONFIG_H
|
|
# include "config.h"
|
|
#endif
|
|
+#ifdef __NetBSD__
|
|
+#include <sys/videoio.h>
|
|
+#include "videodev.h"
|
|
+#else
|
|
#include "videodev.h"
|
|
#include "videodev2.h"
|
|
+#endif
|
|
#include "videoinput.h"
|
|
#include "mixer.h"
|
|
|
|
@@ -377,6 +382,7 @@ uint8_t *videoinput_next_frame( videoinp
|
|
wait_for_frame_v4l2( vidin );
|
|
|
|
cur_buf.type = vidin->capbuffers[ 0 ].vidbuf.type;
|
|
+ cur_buf.memory = vidin->capbuffers[ 0 ].vidbuf.memory;
|
|
if( ioctl( vidin->grab_fd, VIDIOC_DQBUF, &cur_buf ) < 0 ) {
|
|
/* some drivers return EIO when there is no signal */
|
|
if( errno != EIO ) {
|