summaryrefslogtreecommitdiff
path: root/src/qcam/main_window.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-29 20:41:46 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-30 22:19:20 +0300
commit83f8c09c2f67faad5acad6f51db2ddb66a135c0a (patch)
treea41751fb047f66acd589aea3a432520d26439091 /src/qcam/main_window.cpp
parent21e501f81005f0ea21bdd8d3d4c8771f1352fc19 (diff)
(q)cam: Unify naming of configurations in applications
Name all instances of CameraConfiguration "config", and all instances of StreamConfiguration "cfg" accross the cam and qcam applications. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/qcam/main_window.cpp')
-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;