summaryrefslogtreecommitdiff
path: root/test/camera/configuration_set.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/camera/configuration_set.cpp')
-rw-r--r--test/camera/configuration_set.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/camera/configuration_set.cpp b/test/camera/configuration_set.cpp
index 76d8bc3e..25b5db67 100644
--- a/test/camera/configuration_set.cpp
+++ b/test/camera/configuration_set.cpp
@@ -20,7 +20,7 @@ protected:
{
CameraConfiguration config =
camera_->generateConfiguration({ StreamRole::VideoRecording });
- StreamConfiguration *cfg = &config[config.front()];
+ StreamConfiguration *cfg = &config[0];
if (!config.isValid()) {
cout << "Failed to read default configuration" << endl;