[v1,0/3] gstreamer: Fix a crash when memory outlives the pipeline
mbox series

Message ID 20240227175336.560009-1-nicolas@ndufresne.ca
Headers show
Series
  • gstreamer: Fix a crash when memory outlives the pipeline
Related show

Message

Nicolas Dufresne Feb. 27, 2024, 5:53 p.m. UTC
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>

This set fixes a memory lifetime issue which in the end happens because the
camera manager needs to outlive all of its object, including the
FrameBufferAllocator. This is fixing a crash reported at:

https://bugs.libcamera.org/show_bug.cgi?id=211

Nicolas Dufresne (3):
  gstreamer: allocator: Ensure camera manager stay alive
  test: gstreamer: Simplify single stream test
  test: gstreamer: Test memory lifetime

 src/gstreamer/gstlibcameraallocator.cpp       | 16 +++-
 .../gstreamer_memory_lifetime_test.cpp        | 75 +++++++++++++++++++
 .../gstreamer_single_stream_test.cpp          | 27 +++----
 test/gstreamer/meson.build                    |  4 +-
 4 files changed, 102 insertions(+), 20 deletions(-)
 create mode 100644 test/gstreamer/gstreamer_memory_lifetime_test.cpp