summaryrefslogtreecommitdiff
path: root/src/cam/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cam/main.cpp')
-rw-r--r--src/cam/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp
index 535c2420..5ecd7e0e 100644
--- a/src/cam/main.cpp
+++ b/src/cam/main.cpp
@@ -116,7 +116,7 @@ static std::unique_ptr<CameraConfiguration> prepareCameraConfig()
}
std::unique_ptr<CameraConfiguration> config = camera->generateConfiguration(roles);
- if (!config || !config->isValid()) {
+ if (!config || config->size() != roles.size()) {
std::cerr << "Failed to get default stream configuration"
<< std::endl;
return nullptr;