aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-03-13 13:50:28 (GMT)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-03-13 13:50:28 (GMT)
commitc2b36007acf780836b9a122ade1db320fe46e11b (patch)
treeaab1a80de5e8ab9b3c2d163a98f0862bb1ffb463
parentd984abe1390826602846775b4d9b27c624b1829b (diff)
v4l2-ctl: improve logging of events and the stop en/decoder cmds.
Added a few missing newlines and log when the en/decoder is stopped. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-streaming.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
index a653ed1..271cfac 100644
--- a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
@@ -1607,7 +1607,7 @@ recover:
break;
case V4L2_EVENT_EOS:
eos = true;
- fprintf(stderr, "EOS");
+ fprintf(stderr, "\nEOS");
fflush(stderr);
break;
}
@@ -2060,6 +2060,7 @@ static void stateful_m2m(cv4l_fd &fd, cv4l_queue &in, cv4l_queue &out,
.cmd = V4L2_DEC_CMD_STOP,
};
+ fprintf(stderr, "STOP %sCODER\n", is_encoder ? "EN" : "DE");
if (is_encoder)
fd.encoder_cmd(enc_stop);
else
@@ -2076,10 +2077,10 @@ static void stateful_m2m(cv4l_fd &fd, cv4l_queue &in, cv4l_queue &out,
while (!fd.dqevent(ev)) {
if (ev.type == V4L2_EVENT_EOS) {
wr_fds = NULL;
- fprintf(stderr, "EOS");
+ fprintf(stderr, "EOS EVENT\n");
fflush(stderr);
} else if (ev.type == V4L2_EVENT_SOURCE_CHANGE) {
- fprintf(stderr, "SOURCE CHANGE\n");
+ fprintf(stderr, "SOURCE CHANGE EVENT\n");
in_source_change_event = true;
/*

Privacy Policy