summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lc-compliance/simple_capture.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lc-compliance/simple_capture.cpp b/src/lc-compliance/simple_capture.cpp
index 811a6220..64e862a0 100644
--- a/src/lc-compliance/simple_capture.cpp
+++ b/src/lc-compliance/simple_capture.cpp
@@ -23,6 +23,9 @@ Results::Result SimpleCapture::configure(StreamRole role)
{
config_ = camera_->generateConfiguration({ role });
+ if (!config_)
+ return { Results::Skip, "Role not supported by camera" };
+
if (config_->validate() != CameraConfiguration::Valid) {
config_.reset();
return { Results::Fail, "Configuration not valid" };