# HG changeset patch # User reimar # Date 1185814910 0 # Node ID 639ab7e1f093ae2e44d0ff1aeab08a156e32c837 # Parent ee2cf48d66590a7cd560dccc3475fb1eee0cad92 Change V4L2 MPEG decoder check so it can actually fail diff -r ee2cf48d6659 -r 639ab7e1f093 configure --- 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 #include 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