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, 2 insertions, 2 deletions
diff --git a/test/camera/capture.cpp b/test/camera/capture.cpp
index e7e64382..bfd11eef 100644
--- a/test/camera/capture.cpp
+++ b/test/camera/capture.cpp
@@ -44,8 +44,7 @@ protected:
{
CameraConfiguration config =
camera_->generateConfiguration({ StreamRole::VideoRecording });
- Stream *stream = config.front();
- StreamConfiguration *cfg = &config[stream];
+ StreamConfiguration *cfg = &config[0];
if (!config.isValid()) {
cout << "Failed to read default configuration" << endl;
@@ -67,6 +66,7 @@ protected:
return TestFail;
}
+ Stream *stream = cfg->stream();
BufferPool &pool = stream->bufferPool();
std::vector<Request *> requests;
for (Buffer &buffer : pool.buffers()) {