summaryrefslogtreecommitdiff
path: root/src/qcam
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam')
-rw-r--r--src/qcam/main_window.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp
index 56573269..cf39ed7a 100644
--- a/src/qcam/main_window.cpp
+++ b/src/qcam/main_window.cpp
@@ -281,6 +281,7 @@ int MainWindow::startCapture()
config_ = camera_->generateConfiguration({ StreamRole::Viewfinder });
StreamConfiguration &cfg = config_->at(0);
+
if (options_.isSet(OptSize)) {
const std::vector<OptionValue> &sizeOptions =
options_[OptSize].toArray();
@@ -316,10 +317,9 @@ int MainWindow::startCapture()
return -EINVAL;
}
- if (validation == CameraConfiguration::Adjusted) {
- qInfo() << "Stream size adjusted to"
- << cfg.size.toString().c_str();
- }
+ if (validation == CameraConfiguration::Adjusted)
+ qInfo() << "Stream configuration adjusted to "
+ << cfg.toString().c_str();
ret = camera_->configure(config_.get());
if (ret < 0) {