diff options
Diffstat (limited to 'src/libcamera/camera.cpp')
-rw-r--r-- | src/libcamera/camera.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcamera/camera.cpp b/src/libcamera/camera.cpp index 6b74eb8e..cb45bafe 100644 --- a/src/libcamera/camera.cpp +++ b/src/libcamera/camera.cpp @@ -129,10 +129,10 @@ bool CameraConfiguration::isValid() const return false; for (auto const &it : config_) { - const StreamConfiguration &conf = it.second; + const StreamConfiguration &cfg = it.second; - if (conf.size.width == 0 || conf.size.height == 0 || - conf.pixelFormat == 0 || conf.bufferCount == 0) + if (cfg.size.width == 0 || cfg.size.height == 0 || + cfg.pixelFormat == 0 || cfg.bufferCount == 0) return false; } |