summaryrefslogtreecommitdiff
path: root/modules/v4l2/v4l2.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/v4l2/v4l2.c')
-rw-r--r--modules/v4l2/v4l2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/v4l2/v4l2.c b/modules/v4l2/v4l2.c
index 424bf3c..2144400 100644
--- a/modules/v4l2/v4l2.c
+++ b/modules/v4l2/v4l2.c
@@ -62,6 +62,7 @@ struct vidsrc_st {
unsigned int n_buffers;
};
+
static struct vidsrc *vidsrc;
@@ -200,7 +201,6 @@ static int v4l2_init_device(struct vidsrc_st *st, const char *dev_name)
const char *pix;
int err;
-
if (-1 == xioctl(st->fd, VIDIOC_QUERYCAP, &cap)) {
if (EINVAL == errno) {
warning("v4l2: %s is no V4L2 device\n", dev_name);