[libcamera-devel,v2,4/4] cam: Allow cameras with more than one stream

Message ID 20190403011235.12782-5-niklas.soderlund@ragnatech.se
State Superseded
Headers show
Series
  • cam: Add support to specify multiple stream configurations with roles
Related show

Commit Message

Niklas Söderlund April 3, 2019, 1:12 a.m. UTC
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>
---
 src/cam/main.cpp | 8 --------
 1 file changed, 8 deletions(-)

Patch

diff --git a/src/cam/main.cpp b/src/cam/main.cpp
index 9af7907a3d937c28..94aeeee1ef58cca0 100644
--- a/src/cam/main.cpp
+++ b/src/cam/main.cpp
@@ -320,14 +320,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;