@@ -1305,9 +1305,6 @@ CameraConfiguration::Status SimpleCameraConfiguration::validate()
default:
cfg.colorSpace = ColorSpace::Raw;
}
- LOG(SimplePipeline, Debug)
- << "Unspecified color space set to "
- << cfg.colorSpace.value().toString();
/*
* Adjust the assigned color space to make sure everything is OK.
* Since this is assigning an unspecified color space rather than
@@ -1315,6 +1312,9 @@ CameraConfiguration::Status SimpleCameraConfiguration::validate()
* to Adjusted.
*/
cfg.colorSpace->adjust(cfg.pixelFormat);
+ LOG(SimplePipeline, Debug)
+ << "Unspecified color space set to "
+ << cfg.colorSpace.value().toString();
} else {
if (cfg.colorSpace->adjust(cfg.pixelFormat)) {
LOG(SimplePipeline, Debug)
The log message about adjusting an unspecified colour space should log the value after, not before, the adjustment. Signed-off-by: Milan Zamazal <mzamazal@redhat.com> --- src/libcamera/pipeline/simple/simple.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)