This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-utils.git tree:

Subject: pixfmt-test: fix compiler warning.
Author:  Hans Verkuil <[email protected]>
Date:    Fri Aug 17 10:11:10 2012 +0200

Signed-off-by: Hans Verkuil <[email protected]>

 contrib/test/pixfmt-test.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=d28d43acb3742e9cfbdfdb7af99d314c3c5c9f10

diff --git a/contrib/test/pixfmt-test.c b/contrib/test/pixfmt-test.c
index eb50fdb..178fefd 100644
--- a/contrib/test/pixfmt-test.c
+++ b/contrib/test/pixfmt-test.c
@@ -1695,19 +1695,18 @@ init_device                     (void)
                }
        }
 
-       switch (io_method) {
-       case 0:
+       if (io_method == 0) {
                if (cap.capabilities & V4L2_CAP_STREAMING) {
                        io_method = IO_METHOD_MMAP;
                } else if (cap.capabilities & V4L2_CAP_READWRITE) {
                        io_method = IO_METHOD_READ;
                } else {
                        error_exit ("%s does not support reading or "
-                                   "streaming.\n");
+                                       "streaming.\n");
                }
+       }
 
-               break;
-
+       switch (io_method) {
        case IO_METHOD_READ:
                if (0 == (cap.capabilities & V4L2_CAP_READWRITE)) {
                        error_exit ("%s does not support read i/o.\n");

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to