mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-16 04:40:11 +01:00
fix typo in man page on VEEJAY_CAPTURE_DRIVER
only use unicap when not using v4l2 (default: disabled)
This commit is contained in:
@@ -237,6 +237,7 @@ if test "x$enable_v4l1" = "xyes" ; then
|
|||||||
else
|
else
|
||||||
with_v4l2=yes
|
with_v4l2=yes
|
||||||
with_v4l=no
|
with_v4l=no
|
||||||
|
with_unicap=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl ********************************************************************
|
dnl ********************************************************************
|
||||||
@@ -520,11 +521,11 @@ if test x$have_x86cpu = xtrue ;
|
|||||||
then
|
then
|
||||||
if test "x$enable_debug" != "xyes" ;
|
if test "x$enable_debug" != "xyes" ;
|
||||||
then
|
then
|
||||||
if test $ac_cv_flag_sse = yes; then
|
if test x$ac_cv_flag_sse = yes; then
|
||||||
CFLAGS="$CFLAGS -msse -mfpmath=sse"
|
CFLAGS="$CFLAGS -msse -mfpmath=sse"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $av_cv_flag_sse2 = yes; then
|
if test x$av_cv_flag_sse2 = yes; then
|
||||||
CFLAGS="$CFLAGS -msse2 -mfpmath=sse"
|
CFLAGS="$CFLAGS -msse2 -mfpmath=sse"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -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));
|
v4l2info *v = (v4l2info*) vj_calloc(sizeof(v4l2info));
|
||||||
|
if( v == NULL )
|
||||||
|
return NULL;
|
||||||
|
|
||||||
v->fd = fd;
|
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;
|
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) ) ) {
|
if( -1 == vioctl( fd, VIDIOC_QUERYCAP, &(v->capability) ) ) {
|
||||||
veejay_msg(0, "v4l2: VIDIOC_QUERYCAP failed with %s", strerror(errno));
|
veejay_msg(0, "v4l2: VIDIOC_QUERYCAP failed with %s", strerror(errno));
|
||||||
free(v);
|
free(v);
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ Do not start with projection enabled.
|
|||||||
.TP
|
.TP
|
||||||
.SH Environment variables
|
.SH Environment variables
|
||||||
.TP
|
.TP
|
||||||
.B VEEJAY_CAPTURE_DEVICE
|
.B VEEJAY_CAPTURE_DRIVER
|
||||||
You can set this environment variable to 'unicap' for capture
|
You can set this environment variable to 'unicap' for capture
|
||||||
device detection and grabbing.
|
device detection and grabbing.
|
||||||
.TP
|
.TP
|
||||||
|
|||||||
@@ -2024,14 +2024,16 @@ int veejay_init(veejay_t * info, int x, int y,char *arg, int def_tags)
|
|||||||
|
|
||||||
el = info->edit_list;
|
el = info->edit_list;
|
||||||
|
|
||||||
|
#ifdef HAVE_V4L
|
||||||
int driver = 1;
|
int driver = 1;
|
||||||
char *driver_str = getenv("VEEJAY_CAPTURE_DRIVER");
|
char *driver_str = getenv("VEEJAY_CAPTURE_DRIVER");
|
||||||
if( driver_str != NULL ) {
|
if( driver_str != NULL ) {
|
||||||
if( strncasecmp( "unicap",driver_str, 6) == 0 )
|
if( strncasecmp( "unicap",driver_str, 6) == 0 )
|
||||||
driver = 0;
|
driver = 0;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
int driver = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (vj_tag_init(el->video_width, el->video_height, info->pixel_format,driver) != 0) {
|
if (vj_tag_init(el->video_width, el->video_height, info->pixel_format,driver) != 0) {
|
||||||
veejay_msg(VEEJAY_MSG_ERROR, "Error while initializing Stream Manager");
|
veejay_msg(VEEJAY_MSG_ERROR, "Error while initializing Stream Manager");
|
||||||
|
|||||||
Reference in New Issue
Block a user