drop configure option without-v4l2 / without-v4l

add option 'enable-v4l1'
v4l2 driver is default
check on failed open in v4l2_open
This commit is contained in:
niels
2011-06-21 17:37:49 +02:00
parent 3d24bf351f
commit b6f5699961
6 changed files with 51 additions and 34 deletions

View File

@@ -657,9 +657,16 @@ void *v4l2open ( const char *file, const int input_channel, int host_fmt, int wi
return NULL;
}
veejay_msg(VEEJAY_MSG_INFO, "v4l2: Opening Video4Linux2 device: %s ...", file );
int fd = open( file , O_RDWR );
int i;
veejay_msg(VEEJAY_MSG_INFO, "v4l2: Video4Linux2 device opened: %s", file );
if( fd <= 0 ) {
return NULL;
} else {
veejay_msg(VEEJAY_MSG_INFO, "v4l2: Video4Linux2 device opened: %s", file );
}
v4l2info *v = (v4l2info*) vj_calloc(sizeof(v4l2info));