summaryrefslogtreecommitdiff
path: root/src/qcam
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam')
-rw-r--r--src/qcam/main_window.cpp2
-rw-r--r--src/qcam/main_window.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp
index faa3bc57..4bc04403 100644
--- a/src/qcam/main_window.cpp
+++ b/src/qcam/main_window.cpp
@@ -98,7 +98,7 @@ int MainWindow::startCapture()
int ret;
config_ = camera_->streamConfiguration({ Stream::VideoRecording() });
- Stream *stream = config_.begin()->first;
+ Stream *stream = config_.front();
ret = camera_->configureStreams(config_);
if (ret < 0) {
std::cout << "Failed to configure camera" << std::endl;
diff --git a/src/qcam/main_window.h b/src/qcam/main_window.h
index 5e27a8fd..9b31da2b 100644
--- a/src/qcam/main_window.h
+++ b/src/qcam/main_window.h
@@ -46,7 +46,7 @@ private:
std::shared_ptr<Camera> camera_;
bool isCapturing_;
- std::map<Stream *, StreamConfiguration> config_;
+ CameraConfiguration config_;
ViewFinder *viewfinder_;
};