diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-03-27 21:09:18 +0100 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-04-09 17:01:00 +0200 |
commit | 248dc970240fbe58ce68825af3cb4589bce971ab (patch) | |
tree | 03b3691f32994c00c2a28c2eebb6da1964beb23f /src/cam | |
parent | c1df18cab6a0575d13930f13a99296cf2160be7e (diff) |
cam: Allow cameras with more than one stream
The libcamera API and the cam tool are now ready to make use of cameras
with more than one stream. Remove the limitation in the tool which
disallows cameras that provide more than one stream.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/cam')
-rw-r--r-- | src/cam/main.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp index f5c0b071..46aba728 100644 --- a/src/cam/main.cpp +++ b/src/cam/main.cpp @@ -322,14 +322,6 @@ int main(int argc, char **argv) goto out; } - const std::set<Stream *> &streams = camera->streams(); - if (streams.size() != 1) { - std::cout << "Camera has " << streams.size() - << " streams, only 1 is supported" - << std::endl; - goto out; - } - if (camera->acquire()) { std::cout << "Failed to acquire camera" << std::endl; goto out; |