v4l2: Require mplanar support for now in configure
The code fails to compile without currently, see https://bugzilla.gnome.org/show_bug.cgi?id=723446 It's better to disable it instead of failing compilation until this is fixed properly.
This commit is contained in:
parent
117fa7c3e4
commit
3d9f175d5e
15
configure.ac
15
configure.ac
@ -504,7 +504,8 @@ dnl renamed to GST_V4L2 because of some conflict with kernel headers
|
|||||||
translit(dnm, m, l) AM_CONDITIONAL(USE_GST_V4L2, true)
|
translit(dnm, m, l) AM_CONDITIONAL(USE_GST_V4L2, true)
|
||||||
AG_GST_CHECK_FEATURE(GST_V4L2, [Video 4 Linux 2], v4l2src, [
|
AG_GST_CHECK_FEATURE(GST_V4L2, [Video 4 Linux 2], v4l2src, [
|
||||||
AC_MSG_CHECKING([Checking for up to date v4l2 installation])
|
AC_MSG_CHECKING([Checking for up to date v4l2 installation])
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
HAVE_V4L2_PLANE=no
|
||||||
|
AC_CHECK_TYPE(struct v4l2_plane,HAVE_V4L2_PLANE=yes,,[
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#ifdef __sun /* Solaris */
|
#ifdef __sun /* Solaris */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -517,15 +518,11 @@ AG_GST_CHECK_FEATURE(GST_V4L2, [Video 4 Linux 2], v4l2src, [
|
|||||||
#define __user
|
#define __user
|
||||||
#include <linux/videodev2.h>
|
#include <linux/videodev2.h>
|
||||||
#endif
|
#endif
|
||||||
#if defined(V4L2_MAJOR_VERSION) || defined(V4L2_MINOR_VERSION)
|
])
|
||||||
#error too early v4l2 version or no v4l2 at all
|
if [ test x$HAVE_V4L2_PLANE = xyes ]; then
|
||||||
#endif
|
|
||||||
]], [[
|
|
||||||
return 0;
|
|
||||||
]])],[
|
|
||||||
HAVE_GST_V4L2="yes"
|
HAVE_GST_V4L2="yes"
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
],[
|
else
|
||||||
HAVE_GST_V4L2="no"
|
HAVE_GST_V4L2="no"
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
|
|
||||||
@ -541,7 +538,7 @@ return 0;
|
|||||||
else
|
else
|
||||||
AC_MSG_WARN([video4linux2 was not found])
|
AC_MSG_WARN([video4linux2 was not found])
|
||||||
fi
|
fi
|
||||||
])
|
fi
|
||||||
|
|
||||||
if [ test x$HAVE_GST_V4L2 = xyes ]; then
|
if [ test x$HAVE_GST_V4L2 = xyes ]; then
|
||||||
dnl check for XOverlay libraries
|
dnl check for XOverlay libraries
|
||||||
|
Loading…
x
Reference in New Issue
Block a user