diff options
-rwxr-xr-x | configure | 24 | ||||
-rw-r--r-- | libmpdemux/tvi_v4l2.c | 3 |
2 files changed, 13 insertions, 14 deletions
@@ -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 diff --git a/libmpdemux/tvi_v4l2.c b/libmpdemux/tvi_v4l2.c index a04e73f5cf..0d967b498a 100644 --- a/libmpdemux/tvi_v4l2.c +++ b/libmpdemux/tvi_v4l2.c @@ -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" |