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>
This commit is contained in:
parent
c1df18cab6
commit
248dc97024
1 changed files with 0 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue