changeset 23923:639ab7e1f093

Change V4L2 MPEG decoder check so it can actually fail
author reimar
date Mon, 30 Jul 2007 17:01:50 +0000
parents ee2cf48d6659
children 18b221617eca
files configure
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Jul 30 16:18:12 2007 +0000
+++ b/configure	Mon Jul 30 17:01:50 2007 +0000
@@ -4836,11 +4836,13 @@
 #include <linux/videodev2.h>
 #include <linux/version.h>
 int main(void) {
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
+#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;
-#else
-  return -1;
-#endif
 }
 EOF
   _v4l2=no