enum v4l2_buf_type buf_type;
const char *psz_device = p_sys->psz_device;
es_format_t es_fmt;
- int libv4l2_fd;
if( ( i_fd = open( psz_device, O_RDWR ) ) < 0 )
{
device is not a v4l2 device. */
if( p_sys->b_libv4l2 )
{
+ int libv4l2_fd;
libv4l2_fd = v4l2_fd_open( i_fd, V4L2_ENABLE_ENUM_FMT_EMULATION );
if( libv4l2_fd != -1 )
i_fd = libv4l2_fd;
}
- else
-#else
- libv4l2_fd = i_fd;
#endif
/* Tune the tuner */
int i_standard;
int i_fd;
- int libv4l2_fd;
if( ( i_fd = open( psz_device, O_RDWR ) ) < 0 )
{
device is not a v4l2 device. */
if( p_sys->b_libv4l2 )
{
+ int libv4l2_fd;
libv4l2_fd = v4l2_fd_open( i_fd, V4L2_ENABLE_ENUM_FMT_EMULATION );
if( libv4l2_fd != -1 )
i_fd = libv4l2_fd;
}
- else
-#else
- libv4l2_fd = i_fd;
#endif
/* Get device capabilites */