1
mirror of https://github.com/mpv-player/mpv synced 2024-10-18 10:25:02 +02:00

v4l detect fixed

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3751 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-12-25 22:08:22 +00:00
parent baf31d5bfa
commit 0c778769eb

10
configure vendored
View File

@ -2433,17 +2433,17 @@ fi
echores "$_tv"
echocheck "Video 4 Linux TV interface"
if test "$_tv_v4l" = auto && test "$_tv" = yes && linux ; then
_tv_v4l=no
if test -c /dev/video0 ; then
if test "$_tv_v4l" = auto ; then
_tv_v4l=no
if test "$_tv" = yes && linux ; then
if test -c /dev/video0 || test -c /dev/video ; then
cat > $TMPC <<EOF
#include <linux/videodev.h>
int main(void) { return 0; }
EOF
cc_check && _tv_v4l=yes
fi
else
_tv_v4l=no
fi
fi
if test "$_tv_v4l" = yes ; then
_def_tv_v4l='#define HAVE_TV_V4L 1'