]> git.sesse.net Git - vlc/commitdiff
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 8ba191a0391257ff8d63d224f5deb87f2cecc6e0..56e50a078cc35294eb355d54ecaacca32a5a75f4 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;
                 }