summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-03-11 14:13:59 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-04-22 16:56:07 +0100
commit47c12e2635f46f5295b75121a8dd9c787940feaa (patch)
tree2e7ca4cf6662c32244254c18876e10494523c245
parentec5d4acfcaacc687c6bcb9b3c32325c210c4a0f0 (diff)
libcamera: pipeline: ipu3: frames: Fail if the FrameInfo can't be found
The FrameInfo structure associates the data sent to the IPA and is essential for handling events. If it can not be found, this is a fatal error which must be fixed. While we're changing the line, also correct a spelling error for 'Information'. Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--src/libcamera/pipeline/ipu3/frames.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libcamera/pipeline/ipu3/frames.cpp b/src/libcamera/pipeline/ipu3/frames.cpp
index 03e8131c..d0f55ab9 100644
--- a/src/libcamera/pipeline/ipu3/frames.cpp
+++ b/src/libcamera/pipeline/ipu3/frames.cpp
@@ -113,7 +113,8 @@ IPU3Frames::Info *IPU3Frames::find(unsigned int id)
if (itInfo != frameInfo_.end())
return itInfo->second.get();
- LOG(IPU3, Error) << "Can't find tracking informaton for frame " << id;
+ LOG(IPU3, Fatal) << "Can't find tracking information for frame " << id;
+
return nullptr;
}
@@ -131,7 +132,8 @@ IPU3Frames::Info *IPU3Frames::find(FrameBuffer *buffer)
return info;
}
- LOG(IPU3, Error) << "Can't find tracking informaton from buffer";
+ LOG(IPU3, Fatal) << "Can't find tracking information from buffer";
+
return nullptr;
}