diff options
Diffstat (limited to 'multimedia/tvtime/patches/patch-ac')
-rw-r--r-- | multimedia/tvtime/patches/patch-ac | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/multimedia/tvtime/patches/patch-ac b/multimedia/tvtime/patches/patch-ac new file mode 100644 index 00000000000..df925a62eec --- /dev/null +++ b/multimedia/tvtime/patches/patch-ac @@ -0,0 +1,26 @@ +$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 ) { |