[libcamera-devel] android: mm: cros: Fix compilation
diff mbox series

Message ID 20210403235838.21594-1-laurent.pinchart@ideasonboard.com
State Accepted
Headers show
Series
  • [libcamera-devel] android: mm: cros: Fix compilation
Related show

Commit Message

Laurent Pinchart April 3, 2021, 11:58 p.m. UTC
Commit 7d7879833812 ("android: mm: cros: Handle buffer registration
failure") mistakenly tried to initialize the CameraBuffer::Private
registered member variable instead of registered_. This reults in a
compilation failure. Fix it.

Fixes: 7d7879833812 ("android: mm: cros: Handle buffer registration failure")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 src/android/mm/cros_camera_buffer.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

I failed to catch this before pushing :-( Sorry. I'll push the fix right
away to fix the compilation breakage.

Comments

Hirokazu Honda April 4, 2021, 1:06 p.m. UTC | #1
Thanks Laurent for this fix.

On Sun, Apr 4, 2021 at 8:59 AM Laurent Pinchart
<laurent.pinchart@ideasonboard.com> wrote:
>
> Commit 7d7879833812 ("android: mm: cros: Handle buffer registration
> failure") mistakenly tried to initialize the CameraBuffer::Private
> registered member variable instead of registered_. This reults in a
> compilation failure. Fix it.
>
> Fixes: 7d7879833812 ("android: mm: cros: Handle buffer registration failure")
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
>  src/android/mm/cros_camera_buffer.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> I failed to catch this before pushing :-( Sorry. I'll push the fix right
> away to fix the compilation breakage.
>

Reviewed-by: Hirokazu Honda <hiroh@chromium.org>

> diff --git a/src/android/mm/cros_camera_buffer.cpp b/src/android/mm/cros_camera_buffer.cpp
> index 2a82d4b7c470..1a4fd5d1dfe3 100644
> --- a/src/android/mm/cros_camera_buffer.cpp
> +++ b/src/android/mm/cros_camera_buffer.cpp
> @@ -50,7 +50,7 @@ private:
>  CameraBuffer::Private::Private(CameraBuffer *cameraBuffer,
>                                buffer_handle_t camera3Buffer, int flags)
>         : Extensible::Private(cameraBuffer), handle_(camera3Buffer),
> -         numPlanes_(0), valid_(false), registered(false)
> +         numPlanes_(0), valid_(false), registered_(false)
>  {
>         bufferManager_ = cros::CameraBufferManager::GetInstance();
>
> --
> Regards,
>
> Laurent Pinchart
>

Patch
diff mbox series

diff --git a/src/android/mm/cros_camera_buffer.cpp b/src/android/mm/cros_camera_buffer.cpp
index 2a82d4b7c470..1a4fd5d1dfe3 100644
--- a/src/android/mm/cros_camera_buffer.cpp
+++ b/src/android/mm/cros_camera_buffer.cpp
@@ -50,7 +50,7 @@  private:
 CameraBuffer::Private::Private(CameraBuffer *cameraBuffer,
 			       buffer_handle_t camera3Buffer, int flags)
 	: Extensible::Private(cameraBuffer), handle_(camera3Buffer),
-	  numPlanes_(0), valid_(false), registered(false)
+	  numPlanes_(0), valid_(false), registered_(false)
 {
 	bufferManager_ = cros::CameraBufferManager::GetInstance();