mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
2b831bab30
commit
02db61c087
|
@ -4836,11 +4836,13 @@ if test "$_v4l2" = auto ; then
|
||||||
#include <linux/videodev2.h>
|
#include <linux/videodev2.h>
|
||||||
#include <linux/version.h>
|
#include <linux/version.h>
|
||||||
int main(void) {
|
int main(void) {
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
|
||||||
return 0;
|
#error kernel headers too old, need 2.6.22
|
||||||
#else
|
bad_kernel_version();
|
||||||
return -1;
|
|
||||||
#endif
|
#endif
|
||||||
|
struct v4l2_ext_controls ctrls;
|
||||||
|
ctrls.ctrl_class = V4L2_CTRL_CLASS_MPEG;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
_v4l2=no
|
_v4l2=no
|
||||||
|
|
Loading…
Reference in New Issue