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.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/camera/capture.cpp b/test/camera/capture.cpp
index b8dbdb62..4e75a75c 100644
--- a/test/camera/capture.cpp
+++ b/test/camera/capture.cpp
@@ -42,12 +42,12 @@ protected:
int run()
{
- std::map<Stream *, StreamConfiguration> conf =
+ CameraConfiguration conf =
camera_->streamConfiguration({ Stream::VideoRecording() });
- Stream *stream = conf.begin()->first;
- StreamConfiguration *sconf = &conf.begin()->second;
+ Stream *stream = conf.front();
+ StreamConfiguration *sconf = &conf[stream];
- if (!configurationValid(conf)) {
+ if (!conf.isValid()) {
cout << "Failed to read default configuration" << endl;
return TestFail;
}