summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-06-26 03:22:04 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-06-29 00:43:46 +0300
commit12809ff171aee57b306a9b29d6593793ea984ae6 (patch)
tree8b9620ac651c058dec3499b3a8aace4b230c35fd /src
parent535820fe51ac9881ae3562ffd4a69ef3359f85f6 (diff)
libcamera: pipeline: simple: converter: Improve error message
When the configuration of the converter fails due to format mismatch, the error messages only indicates that a failure occurred. Improve it to ease debugging by printing the requested and obtained formats. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/pipeline/simple/converter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/simple/converter.cpp b/src/libcamera/pipeline/simple/converter.cpp
index 9af1096b..3baf78f9 100644
--- a/src/libcamera/pipeline/simple/converter.cpp
+++ b/src/libcamera/pipeline/simple/converter.cpp
@@ -64,7 +64,9 @@ int SimpleConverter::Stream::configure(const StreamConfiguration &inputCfg,
if (format.fourcc != videoFormat || format.size != inputCfg.size ||
format.planes[0].bpl != inputCfg.stride) {
LOG(SimplePipeline, Error)
- << "Input format not supported";
+ << "Input format not supported (requested "
+ << inputCfg.size.toString() << "-" << videoFormat.toString()
+ << ", got " << format.toString() << ")";
return -EINVAL;
}