summaryrefslogtreecommitdiff
path: root/test/camera/capture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/camera/capture.cpp')
-rw-r--r--test/camera/capture.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/camera/capture.cpp b/test/camera/capture.cpp
index c0835c25..98e71905 100644
--- a/test/camera/capture.cpp
+++ b/test/camera/capture.cpp
@@ -42,7 +42,9 @@ protected:
int init() override
{
- CameraTest::init();
+ int ret = CameraTest::init();
+ if (ret)
+ return ret;
config_ = camera_->generateConfiguration({ StreamRole::VideoRecording });
if (!config_ || config_->size() != 1) {