summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-30 17:01:50 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-30 17:01:50 +0000
commit02db61c08706b913e1ffce597a2a262d886f0055 (patch)
tree3cf4fd658adf46d1886f4dc269d89602a0a3e8e1 /configure
parent2b831bab30aefd65e17ac6e7fa5dcde81b6ad251 (diff)
downloadmpv-02db61c08706b913e1ffce597a2a262d886f0055.tar.bz2
mpv-02db61c08706b913e1ffce597a2a262d886f0055.tar.xz
Change V4L2 MPEG decoder check so it can actually fail
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23943 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 6 insertions, 4 deletions
diff --git a/configure b/configure
index ffb52b070d..7d33a53830 100755
--- a/configure
+++ b/configure
@@ -4836,11 +4836,13 @@ if test "$_v4l2" = auto ; then
#include <linux/videodev2.h>
#include <linux/version.h>
int main(void) {
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
- return 0;
-#else
- return -1;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
+#error kernel headers too old, need 2.6.22
+ bad_kernel_version();
#endif
+ struct v4l2_ext_controls ctrls;
+ ctrls.ctrl_class = V4L2_CTRL_CLASS_MPEG;
+ return 0;
}
EOF
_v4l2=no