summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2022-05-27 18:34:40 +0900
committerJacopo Mondi <jacopo@jmondi.org>2022-06-10 11:48:10 +0200
commit1735d176bc6139ae76dae0c84ab15bda5884764d (patch)
tree2785a0b1645d7096bdc8f9a418c5133efef82ebc
parent246d3f631bf6bb51fd5c022cc78068cbd829ce3a (diff)
android: camera_device: Print the correct number of completed streams
When a request completes, a debug message is generated to help identify the request and the number of streams it contains. The printed number of streams is however the number of output buffers requested by the camera framework, not the number of streams generated by libcamera. In facts, some output buffers are generated by post-processing, and not directly from the camera. As the debug message prints the libcamera identifier for the Request, it is more logical to print the number of streams generated by the camera instead of the total number of streams. Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--src/android/camera_device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp
index 11acfd6b..8c039fb9 100644
--- a/src/android/camera_device.cpp
+++ b/src/android/camera_device.cpp
@@ -1185,7 +1185,7 @@ void CameraDevice::requestComplete(Request *request)
notifyShutter(descriptor->frameNumber_, sensorTimestamp);
LOG(HAL, Debug) << "Request " << request->cookie() << " completed with "
- << descriptor->buffers_.size() << " streams";
+ << descriptor->request_->buffers().size() << " streams";
/*
* Generate the metadata associated with the captured buffers.