Commit eb9b54c8 authored by Pierre Ynard's avatar Pierre Ynard

v4l2: fix reversed logic

Fix interlacing support with default chromas too
parent f87986e4
...@@ -1950,7 +1950,7 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux ) ...@@ -1950,7 +1950,7 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux )
if( v4l2_ioctl( i_fd, VIDIOC_S_FMT, &fmt ) >= 0 ) if( v4l2_ioctl( i_fd, VIDIOC_S_FMT, &fmt ) >= 0 )
break; break;
fmt.fmt.pix.field = V4L2_FIELD_ANY; fmt.fmt.pix.field = V4L2_FIELD_ANY;
if( v4l2_ioctl( i_fd, VIDIOC_S_FMT, &fmt ) < 0 ) if( v4l2_ioctl( i_fd, VIDIOC_S_FMT, &fmt ) >= 0 )
break; break;
fmt.fmt.pix.field = V4L2_FIELD_NONE; fmt.fmt.pix.field = V4L2_FIELD_NONE;
} }
......
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