aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-ctl/v4l2-ctl.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-01-18 17:22:23 +0100
committerHans Verkuil <hans.verkuil@cisco.com>2017-01-18 17:22:23 +0100
commit42ac437b3493615d5571f5f76f73979145fef1b2 (patch)
tree89a5f63de9980f97cf72a9c60605c9546cc59dec /utils/v4l2-ctl/v4l2-ctl.cpp
parentbc29784e7a3d27f996f7134ad1117985adf103d7 (diff)
v4l2-ctl: add --stream-sleep option
Add option to periodically sleep for one second while streaming. This makes it easier to test what happens when an application cannot keep up with streaming. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/v4l2-ctl/v4l2-ctl.cpp')
-rw-r--r--utils/v4l2-ctl/v4l2-ctl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl.cpp b/utils/v4l2-ctl/v4l2-ctl.cpp
index 9f9873ef..886a91d0 100644
--- a/utils/v4l2-ctl/v4l2-ctl.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl.cpp
@@ -216,6 +216,7 @@ static struct option long_options[] = {
{"stream-count", required_argument, 0, OptStreamCount},
{"stream-skip", required_argument, 0, OptStreamSkip},
{"stream-loop", no_argument, 0, OptStreamLoop},
+ {"stream-sleep", required_argument, 0, OptStreamSleep},
{"stream-poll", no_argument, 0, OptStreamPoll},
{"stream-to", required_argument, 0, OptStreamTo},
{"stream-to-host", required_argument, 0, OptStreamToHost},

Privacy Policy