[vlc-devel] commit: v4l2: fix reversed logic (Pierre Ynard )

git version control git at videolan.org
Sat Sep 12 15:00:51 CEST 2009


vlc | branch: 1.0-bugfix | Pierre Ynard <linkfanel at yahoo.fr> | Wed Jul 29 23:08:00 2009 +0200| [82138afa6c88ff7c0fa4a7b316b44fe7ee040f2b] | committer: Antoine Cellerier 

v4l2: fix reversed logic

Fix interlacing support with default chromas too
(cherry picked from commit eb9b54c8eeba73cff04e44af8d3dd8d4ad05e3db)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=82138afa6c88ff7c0fa4a7b316b44fe7ee040f2b
---

 modules/access/v4l2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/v4l2.c b/modules/access/v4l2.c
index f490b83..9a7e1cd 100644
--- a/modules/access/v4l2.c
+++ b/modules/access/v4l2.c
@@ -1969,7 +1969,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;
                 }




More information about the vlc-devel mailing list