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,8 +6370,6 @@ echocheck "Video 4 Linux TV interface"
|
||||||
if test "$_tv_v4l" = auto ; then
|
if test "$_tv_v4l" = auto ; then
|
||||||
_tv_v4l=no
|
_tv_v4l=no
|
||||||
if test "$_tv" = yes && linux ; then
|
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 <stdlib.h>
|
||||||
#include <linux/videodev.h>
|
#include <linux/videodev.h>
|
||||||
|
@ -6380,8 +6378,6 @@ EOF
|
||||||
cc_check && _tv_v4l=yes
|
cc_check && _tv_v4l=yes
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
if test "$_tv_v4l" = yes ; then
|
if test "$_tv_v4l" = yes ; then
|
||||||
_def_tv_v4l='#define HAVE_TV_V4L 1'
|
_def_tv_v4l='#define HAVE_TV_V4L 1'
|
||||||
|
@ -6397,13 +6393,15 @@ echocheck "Video 4 Linux 2 TV interface"
|
||||||
if test "$_tv_v4l2" = auto ; then
|
if test "$_tv_v4l2" = auto ; then
|
||||||
_tv_v4l2=no
|
_tv_v4l2=no
|
||||||
if test "$_tv" = yes && linux ; then
|
if test "$_tv" = yes && linux ; then
|
||||||
for I in /dev/video /dev/video? ; do
|
cat > $TMPC <<EOF
|
||||||
if test -c $I ; then
|
#include <stdlib.h>
|
||||||
_tv_v4l2=yes
|
#include <linux/types.h>
|
||||||
|
#include <linux/videodev2.h>
|
||||||
|
int main(void) { return 0; }
|
||||||
|
EOF
|
||||||
|
cc_check && _tv_v4l2=yes
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
if test "$_tv_v4l2" = yes ; then
|
if test "$_tv_v4l2" = yes ; then
|
||||||
_def_tv_v4l2='#define HAVE_TV_V4L2 1'
|
_def_tv_v4l2='#define HAVE_TV_V4L2 1'
|
||||||
|
|
|
@ -40,7 +40,8 @@ known issues:
|
||||||
#ifdef HAVE_SYS_SYSINFO_H
|
#ifdef HAVE_SYS_SYSINFO_H
|
||||||
#include <sys/sysinfo.h>
|
#include <sys/sysinfo.h>
|
||||||
#endif
|
#endif
|
||||||
#include "videodev2.h"
|
#include <linux/types.h>
|
||||||
|
#include <linux/videodev2.h>
|
||||||
#include "../mp_msg.h"
|
#include "../mp_msg.h"
|
||||||
#include "../libvo/img_format.h"
|
#include "../libvo/img_format.h"
|
||||||
#include "../libaf/af_format.h"
|
#include "../libaf/af_format.h"
|
||||||
|
|
Loading…
Reference in New Issue