libcamera/test/gstreamer
Vedant Paranjape 0eea207b04 test: gstreamer: Fix the destructor of GstreamerTest base class
The destructor tried to check if pipeline_ is a parent of libcameraSrc_.
This was needed to be checked as if it is, cleanup of libcameraSrc_
would be handled by pipeline itself.

Since, the destructor can be called anytime, even when pipeline_ hasn't
been created, the use of pipeline_ to check if libcameraSrc_ has an
ancestor as pipeline_ caused a segmentation fault.

Fixes: f58768092277 ("test: gstreamer: Fix the destructor of GstreamerTest base class")
Signed-off-by: Vedant Paranjape <vedantparanjape160201@gmail.com>
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2021-09-09 15:47:38 +01:00
..
gstreamer_single_stream_test.cpp test: gstreamer: Factor out code into a base class 2021-09-08 17:40:53 +09:00
gstreamer_test.cpp test: gstreamer: Fix the destructor of GstreamerTest base class 2021-09-09 15:47:38 +01:00
gstreamer_test.h test: gstreamer: Factor out code into a base class 2021-09-08 17:40:53 +09:00
meson.build test: gstreamer: Factor out code into a base class 2021-09-08 17:40:53 +09:00