aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-03-30 10:09:01 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-03-30 10:11:12 +0100
commit5d00c74f80ea134e514ca765c18c48fa99758c7b (patch)
treeaa1f7665ae3eca142358ff8a0496f2ab10742673 /utils/v4l2-ctl/v4l2-ctl-streaming.cpp
parent7ee189ecae0193fc2f98a09ed087f9f2cf30def7 (diff)
v4l2-ctl: fix broken stateless decoding
The last argument for do_handle_out was set to true instead of false, causing do_handle_out to think that the stateless decoder had stopped. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/v4l2-ctl/v4l2-ctl-streaming.cpp')
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-streaming.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
index 6eae65e6..bb656584 100644
--- a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
@@ -2471,10 +2471,10 @@ static void stateless_m2m(cv4l_fd &fd, cv4l_queue &in, cv4l_queue &out,
}
}
int buf_idx = -1;
- /*
- * fin is not sent to do_handle_cap since the capture buf is
- * written to the file in current function
- */
+ /*
+ * fin is not sent to do_handle_cap since the capture buf is
+ * written to the file in current function
+ */
rc = do_handle_cap(fd, in, NULL, &buf_idx, count[CAP],
fps_ts[CAP], fmt_in, false);
if (rc && rc != QUEUE_STOPPED) {
@@ -2516,7 +2516,7 @@ static void stateless_m2m(cv4l_fd &fd, cv4l_queue &in, cv4l_queue &out,
if (!stopped) {
rc = do_handle_out(fd, out, fout, NULL, count[OUT],
- fps_ts[OUT], fmt_out, true);
+ fps_ts[OUT], fmt_out, false);
if (rc) {
stopped = true;
if (rc != QUEUE_STOPPED)

Privacy Policy