summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-12-19 20:55:19 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-12-19 20:55:19 +0000
commite8bf6a26c81b32da1b9a02dc8a5dc9998b5ce708 (patch)
treeb82bbc7bf27162a6292aefbe54c47322db511c2d
parent0fc7fdb71a319c3af5cf33cc46f0ebc0c2648e67 (diff)
XFree86 4.3.99.902 (RC 2)xf86-4_3_99_902
-rw-r--r--src/v4l.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/v4l.c b/src/v4l.c
index 0532ac0..81ae284 100644
--- a/src/v4l.c
+++ b/src/v4l.c
@@ -2,7 +2,7 @@
* video4linux Xv Driver
* based on Michael Schimek's permedia 2 driver.
*/
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/v4l/v4l.c,v 1.32 2003/09/24 02:43:30 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/v4l/v4l.c,v 1.33 2003/12/05 03:55:32 dawes Exp $ */
#include "videodev.h"
#include "xf86.h"
@@ -718,11 +718,11 @@ static void
V4LBuildEncodings(PortPrivPtr p, int fd, int channels)
{
static struct video_channel channel;
- int i,entries,have_bttv;
+ int i,entries,have_bttv,bttv_ver;
#define BTTV_VERSION _IOR('v' , BASE_VIDIOCPRIVATE+6, int)
have_bttv = 0;
- if (-1 != ioctl(fd,BTTV_VERSION,NULL))
+ if (-1 != ioctl(fd,BTTV_VERSION,&bttv_ver))
have_bttv = 1;
entries = (have_bttv ? 7 : 3) * channels;