libcamera/test/gstreamer
Nicolas Dufresne 0c9862d6e3 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>
2024-07-25 11:44:32 +01:00
..
gstreamer_device_provider_test.cpp libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
gstreamer_memory_lifetime_test.cpp test: gstreamer: Test memory lifetime 2024-07-25 11:44:05 +01:00
gstreamer_multi_stream_test.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
gstreamer_single_stream_test.cpp test: gstreamer: Simplify single stream test 2024-05-13 16:33:43 +03:00
gstreamer_test.cpp test: gstreamer: Include missing sanitizer/asan_interface.h header 2024-06-26 12:07:11 +03:00
gstreamer_test.h libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
meson.build gstreamer: allocator: Ensure camera manager stay alive 2024-07-25 11:44:32 +01:00