diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2020-08-10 11:43:09 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2020-08-10 11:43:09 +0200 |
commit | 78e4b293f654df1f273bbc6b1213511f53a2a465 (patch) | |
tree | 13e49ea208df4400f9d82846f3650b9615931386 | |
parent | f12ac3a351cac4e109cafa06e2f649d9c7b45bd8 (diff) |
v4l2-ctl: fix broken fd.qbuf error check
In one place the result of fd.qbuf was checked if it was negative,
but it should have been a check for non-zero.
Fix this.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r-- | utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp index 0c384fe9..c936299f 100644 --- a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp +++ b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp @@ -2506,7 +2506,7 @@ static void stateless_m2m(cv4l_fd &fd, cv4l_queue &in, cv4l_queue &out, * is not needed anymore as a reference frame */ if (queue_lst_buf) { - if (fd.qbuf(last_in_buf) < 0) { + if (fd.qbuf(last_in_buf)) { fprintf(stderr, "%s: qbuf failed\n", __func__); return; } |