fix typo in man page on VEEJAY_CAPTURE_DRIVER

only use unicap when not using v4l2 (default: disabled)
This commit is contained in:
niels
2011-06-23 19:05:27 +02:00
parent b6f5699961
commit a6cde620bd
4 changed files with 10 additions and 7 deletions

View File

@@ -669,6 +669,8 @@ void *v4l2open ( const char *file, const int input_channel, int host_fmt, int wi
}
v4l2info *v = (v4l2info*) vj_calloc(sizeof(v4l2info));
if( v == NULL )
return NULL;
v->fd = fd;
@@ -678,8 +680,6 @@ void *v4l2open ( const char *file, const int input_channel, int host_fmt, int wi
dst_fmt = PIX_FMT_GRAY8;
}
veejay_msg(VEEJAY_MSG_INFO, "v4l2: Host running in %s", av_pix_fmt_descriptors[ dst_fmt ] );
if( -1 == vioctl( fd, VIDIOC_QUERYCAP, &(v->capability) ) ) {
veejay_msg(0, "v4l2: VIDIOC_QUERYCAP failed with %s", strerror(errno));
free(v);