diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2024-03-05 10:30:56 -0500 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2024-07-25 11:44:32 +0100 |
commit | 0c9862d6e384ae2f9d5fd0e574f9d7ed4b9f15b6 (patch) | |
tree | 2651b075fb88e8aed6ae32da47d66a5b30962aef /src/android/data/soraka/camera_hal.yaml | |
parent | d267fd6d89be8dd9274b058f05230712cf9773b8 (diff) |
gstreamer: allocator: Ensure camera manager stay alive
Without the camera manager, it is not possible to cleanly delete the
FrameBufferAllocator object. Keep the camera manager alive until all the
memory object have been released.
A shared_ptr to the CameraManager is introduced which is itself stored
as a plain pointer and allocated and released explicitly. When more
than one C++ member is required, this can be refactored to use a new C++
class, but the struct _GstLibcameraAllocator is allocated and freed by
glib, so it does not have automatic destruction presently.
Bug: https://bugs.libcamera.org/show_bug.cgi?id=211
[Kieran: Update test framework to remove expected test fail]
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/android/data/soraka/camera_hal.yaml')
0 files changed, 0 insertions, 0 deletions