Commit 44ad0ad0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Avoid obsolete V4L2_ENABLE_ENUM_FMT_EMULATION flag

"libv4l *always* reports emulated formats to ENUM_FMT,
 except when conversion is disabled."
parent fac083ec
......@@ -1827,7 +1827,7 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux )
if( p_sys->b_libv4l2 )
{
int libv4l2_fd;
libv4l2_fd = v4l2_fd_open( i_fd, V4L2_ENABLE_ENUM_FMT_EMULATION );
libv4l2_fd = v4l2_fd_open( i_fd, 0 );
if( libv4l2_fd != -1 )
i_fd = libv4l2_fd;
}
......@@ -2381,7 +2381,7 @@ static bool ProbeVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys,
if( p_sys->b_libv4l2 )
{
int libv4l2_fd;
libv4l2_fd = v4l2_fd_open( i_fd, V4L2_ENABLE_ENUM_FMT_EMULATION );
libv4l2_fd = v4l2_fd_open( i_fd, 0 );
if( libv4l2_fd != -1 )
i_fd = libv4l2_fd;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment