[MPlayer-cvslog] r23943 - trunk/configure

reimar subversion at mplayerhq.hu
Mon Jul 30 19:01:50 CEST 2007


Author: reimar
Date: Mon Jul 30 19:01:50 2007
New Revision: 23943

Log:
Change V4L2 MPEG decoder check so it can actually fail


Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Mon Jul 30 19:01:50 2007
@@ -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



More information about the MPlayer-cvslog mailing list