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

Subject: v4l2-ctl: check for presence of the SOURCE_CHANGE event
Author:  Hans Verkuil <hverkuil-ci...@xs4all.nl>
Date:    Wed Jan 30 11:46:49 2019 +0100

If this event doesn't exist, then also call capture_setup() when
you start streaming. This would be the case for e.g. JPEG decoders.

Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=dbab363a6022806d3d9568e470941e9113910b37
diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp 
b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
index 33ffb2e8c9d4..01097d4e5d12 100644
--- a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
@@ -1971,8 +1971,7 @@ static void streaming_set_m2m(cv4l_fd &fd, cv4l_fd 
&exp_fd)
 
        memset(&sub, 0, sizeof(sub));
        sub.type = V4L2_EVENT_SOURCE_CHANGE;
-       if (fd.subscribe_event(sub) && codec_type != NOT_CODEC)
-               goto done;
+       bool have_source_change = !fd.subscribe_event(sub);
 
        file[CAP] = open_output_file(fd);
        file[OUT] = open_input_file(fd, out.g_type());
@@ -1999,7 +1998,7 @@ static void streaming_set_m2m(cv4l_fd &fd, cv4l_fd 
&exp_fd)
        if (fd.streamon(out.g_type()))
                goto done;
 
-       if (codec_type != DECODER)
+       if (codec_type != DECODER || !have_source_change)
                if (capture_setup(fd, in, exp_fd_p))
                        goto done;
 

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to