mirror of https://github.com/mpv-player/mpv
Update the test for ivtv output driver.
Linux kernel 2.6.24 now includes ivtv, but the vo_ivtv.c fails to compile with it. Test for structures and ioctl()s used in the current driver. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25946 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6921ab9e24
commit
3e9b59583d
|
@ -4927,7 +4927,7 @@ fi
|
||||||
echores "$_dxr3"
|
echores "$_dxr3"
|
||||||
|
|
||||||
|
|
||||||
echocheck "IVTV TV-Out"
|
echocheck "IVTV TV-Out (pre linux-2.6.24)"
|
||||||
if test "$_ivtv" = auto ; then
|
if test "$_ivtv" = auto ; then
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -4935,7 +4935,13 @@ if test "$_ivtv" = auto ; then
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <linux/videodev2.h>
|
#include <linux/videodev2.h>
|
||||||
#include <linux/ivtv.h>
|
#include <linux/ivtv.h>
|
||||||
int main(void) { return 0; }
|
#include <sys/ioctl.h>
|
||||||
|
int main(void) {
|
||||||
|
struct ivtv_cfg_stop_decode sd;
|
||||||
|
struct ivtv_cfg_start_decode sd1;
|
||||||
|
ioctl (0, IVTV_IOC_START_DECODE, &sd1);
|
||||||
|
ioctl (0, IVTV_IOC_STOP_DECODE, &sd);
|
||||||
|
return 0; }
|
||||||
EOF
|
EOF
|
||||||
_ivtv=no
|
_ivtv=no
|
||||||
cc_check && _ivtv=yes
|
cc_check && _ivtv=yes
|
||||||
|
|
Loading…
Reference in New Issue