summaryrefslogtreecommitdiff
path: root/src/cam
diff options
context:
space:
mode:
Diffstat (limited to 'src/cam')
-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;