#include <unistd.h>
#include <linux/types.h>
#include <sys/ioctl.h>
-#ifdef HAVE_NEW_LINUX_VIDEODEV2_H
-# ifdef VIDEODEV2_H_FILE
-# include VIDEODEV2_H_FILE
-# else
+#if defined(HAVE_LINUX_VIDEODEV2_H)
# include <linux/videodev2.h>
-# endif
+#elif defined(HAVE_SYS_VIDEOIO_H)
+# include <sys/videoio.h>
#else
-#include "videodev2.h"
+# error "No Video4Linux2 headers found."
#endif
/*****************************************************************************
return VLC_SUCCESS;
}
-#ifdef HAVE_NEW_LINUX_VIDEODEV2_H
-
#define MAX_V4L2_CTRLS (6)
/*****************************************************************************
* AddV4L2Ctrl: adds a control to the v4l2 controls list
return VLC_SUCCESS;
}
-#endif /* HAVE_NEW_LINUX_VIDEODEV2_H */
-
/*****************************************************************************
* Open: open the device
*****************************************************************************/
{
if( p_sys->b_v4l2_api )
{
-#ifdef HAVE_NEW_LINUX_VIDEODEV2_H
result = ConfigureV4L2( p_access );
if( result != VLC_SUCCESS )
{
Close( VLC_OBJECT(p_access) );
return result;
}
-#else
- msg_Warn( p_access, "You have new ivtvdrivers, "
- "but this vlc was built against an old v4l2 version." );
-#endif
}
else
{