[libcamera-devel] [PATCH v2 9/9] android: camera_device: Report an error in notifyError()

Kieran Bingham kieran.bingham at ideasonboard.com
Thu Jul 2 23:36:54 CEST 2020


If an error is generated, try to be verbose about it in the libcamera logs.

Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
 src/android/camera_device.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp
index 4681fd8af90b..5a3b4dfae6a0 100644
--- a/src/android/camera_device.cpp
+++ b/src/android/camera_device.cpp
@@ -1192,6 +1192,9 @@ void CameraDevice::notifyError(uint32_t frameNumber, camera3_stream_t *stream)
 {
 	camera3_notify_msg_t notify = {};
 
+	LOG(HAL, Error) << "Error occured on frame " << frameNumber
+			<< toPixelFormat(stream->format);
+
 	notify.type = CAMERA3_MSG_ERROR;
 	notify.message.error.error_stream = stream;
 	notify.message.error.frame_number = frameNumber;
-- 
2.25.1



More information about the libcamera-devel mailing list