summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qcam/main_window.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp
index 6e92f6a1..ee06d751 100644
--- a/src/qcam/main_window.cpp
+++ b/src/qcam/main_window.cpp
@@ -105,9 +105,9 @@ int MainWindow::startCapture()
return ret;
}
- const StreamConfiguration &sconf = config_[stream];
- ret = viewfinder_->setFormat(sconf.pixelFormat, sconf.size.width,
- sconf.size.height);
+ const StreamConfiguration &cfg = config_[stream];
+ ret = viewfinder_->setFormat(cfg.pixelFormat, cfg.size.width,
+ cfg.size.height);
if (ret < 0) {
std::cout << "Failed to set viewfinder format" << std::endl;
return ret;