v4l2: fix reversed logic
authorPierre Ynard <linkfanel@yahoo.fr>
Wed, 29 Jul 2009 21:08:00 +0000 (23:08 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Wed, 29 Jul 2009 21:08:00 +0000 (23:08 +0200)
Fix interlacing support with default chromas too

modules/access/v4l2.c

index 8ba191a..56e50a0 100644 (file)
@@ -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 )
                         break;
                     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;
                     fmt.fmt.pix.field = V4L2_FIELD_NONE;
                 }