[libcamera-devel] [PATCH 2/2] android: camera_stream: Fix error message for buffer creation
Jacopo Mondi
jacopo at jmondi.org
Mon Oct 11 12:23:45 CEST 2021
On Thu, Oct 07, 2021 at 03:09:37PM +0530, Umang Jain wrote:
> From: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
>
> Creating a CameraBuffer instance doesn't map memory. Fix the error
> message accordingly.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> Reviewed-by: Umang Jain <umang.jain at ideasonboard.com>
> Signed-off-by: Umang Jain <umang.jain at ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo at jmondi.org>
> ---
> src/android/camera_stream.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/android/camera_stream.cpp b/src/android/camera_stream.cpp
> index db8d854b..3b96d2e9 100644
> --- a/src/android/camera_stream.cpp
> +++ b/src/android/camera_stream.cpp
> @@ -171,7 +171,7 @@ int CameraStream::process(const FrameBuffer &source,
> CameraBuffer dest(*camera3Dest.buffer, output.pixelFormat, output.size,
> PROT_READ | PROT_WRITE);
> if (!dest.isValid()) {
> - LOG(HAL, Error) << "Failed to map android blob buffer";
> + LOG(HAL, Error) << "Failed to create destination buffer";
> return -EINVAL;
> }
>
> --
> 2.31.1
>
More information about the libcamera-devel
mailing list