qcam: Print whole stream configuration when adjusted

When the validate() function adjusts the stream configuration, we print
the adjusted size for debugging purpose. Switch to printing the whole
configuration, as the pixel format may be useful too.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart
2020-03-19 03:45:22 +02:00
parent ee7e2c93df
commit 8c8fde05ac
+4 -4
View File
@@ -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) {