v4l2-ctl: don't produce verbose output for QBUF while streaming.
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 19 Mar 2013 11:50:06 +0000 (12:50 +0100)
committerHans Verkuil <hans.verkuil@cisco.com>
Tue, 19 Mar 2013 11:50:06 +0000 (12:50 +0100)
You are not interested in the verbose logging of QBUF while streaming.
It's not done for DQBUF, so silence QBUF as well.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/v4l2-ctl/v4l2-ctl-streaming.cpp

index b4ca206..43013ed 100644 (file)
@@ -702,7 +702,7 @@ void streaming_set(int fd)
                                ch = 'B';
                        if (verbose)
                                print_buffer(stderr, buf);
-                       if (doioctl(fd, VIDIOC_QBUF, &buf))
+                       if (test_ioctl(fd, VIDIOC_QBUF, &buf))
                                return;
 
                        if (!verbose) {
@@ -918,7 +918,7 @@ void streaming_set(int fd)
                        if (fin && !fill_buffer_from_file(buffers, buffer_lengths,
                                        buf.index, num_planes, fin))
                                break;
-                       if (doioctl(fd, VIDIOC_QBUF, &buf))
+                       if (test_ioctl(fd, VIDIOC_QBUF, &buf))
                                return;
 
                        fprintf(stderr, ".");