mirror of https://github.com/mpv-player/mpv
- remove useless /dev/video* checks
- add a proper configure check for v4l2 - prepare for videodev2.h removal git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16443 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8a2a84dc51
commit
4655eb7787
|
@ -6370,17 +6370,13 @@ echocheck "Video 4 Linux TV interface"
|
|||
if test "$_tv_v4l" = auto ; then
|
||||
_tv_v4l=no
|
||||
if test "$_tv" = yes && linux ; then
|
||||
for I in /dev/video /dev/video? ; do
|
||||
if test -c $I ; then
|
||||
cat > $TMPC <<EOF
|
||||
cat > $TMPC <<EOF
|
||||
#include <stdlib.h>
|
||||
#include <linux/videodev.h>
|
||||
int main(void) { return 0; }
|
||||
EOF
|
||||
cc_check && _tv_v4l=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
cc_check && _tv_v4l=yes
|
||||
break
|
||||
fi
|
||||
fi
|
||||
if test "$_tv_v4l" = yes ; then
|
||||
|
@ -6397,12 +6393,14 @@ echocheck "Video 4 Linux 2 TV interface"
|
|||
if test "$_tv_v4l2" = auto ; then
|
||||
_tv_v4l2=no
|
||||
if test "$_tv" = yes && linux ; then
|
||||
for I in /dev/video /dev/video? ; do
|
||||
if test -c $I ; then
|
||||
_tv_v4l2=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
cat > $TMPC <<EOF
|
||||
#include <stdlib.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/videodev2.h>
|
||||
int main(void) { return 0; }
|
||||
EOF
|
||||
cc_check && _tv_v4l2=yes
|
||||
break
|
||||
fi
|
||||
fi
|
||||
if test "$_tv_v4l2" = yes ; then
|
||||
|
|
|
@ -40,7 +40,8 @@ known issues:
|
|||
#ifdef HAVE_SYS_SYSINFO_H
|
||||
#include <sys/sysinfo.h>
|
||||
#endif
|
||||
#include "videodev2.h"
|
||||
#include <linux/types.h>
|
||||
#include <linux/videodev2.h>
|
||||
#include "../mp_msg.h"
|
||||
#include "../libvo/img_format.h"
|
||||
#include "../libaf/af_format.h"
|
||||
|
|
Loading…
Reference in New Issue