libcamera/test/gstreamer
Vedant Paranjape 46340ced12 test: gstreamer: Fix failure of gstreamer_multistream_test
Multistream test failed with the following logs, to run on Raspberry Pi 4 due
to a bug introduced in one of the recent patches refactoring the code
that fails to set the camera-name property with a valid camera id
string.

WARN libcamerasrc gstlibcamerasrc.cpp:347:gst_libcamera_src_open:<libcamera> error: Could not find a camera named ''.
WARN libcamerasrc gstlibcamerasrc.cpp:347:gst_libcamera_src_open:<libcamera> error: libcamera::CameraMananger::get() returned nullptr

This patch assigns the camera->id() to the variable cameraName_ that is
later used to set element property "camera-name" needed to call the
specific camera which supports multistreams. Move the code to set
element property "camera-name" to base class GstreamerTest.

Fixes: 5646849b59 ("test: gstreamer: Check availability of cameras before running")
Signed-off-by: Vedant Paranjape <vedantparanjape160201@gmail.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Tested-by: Rishikesh Donadkar <rishikeshdonadkar@gmail.com>
Reviewed-by: Rishikesh Donadkar <rishikeshdonadkar@gmail.com>
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
2022-09-12 22:44:54 +05:30
..
gstreamer_multi_stream_test.cpp test: gstreamer: Fix failure of gstreamer_multistream_test 2022-09-12 22:44:54 +05:30
gstreamer_single_stream_test.cpp test: gstreamer: Remove unnecessary header file includes 2021-10-04 12:55:08 +05:30
gstreamer_test.cpp test: gstreamer: Fix failure of gstreamer_multistream_test 2022-09-12 22:44:54 +05:30
gstreamer_test.h test: gstreamer: Fix failure of gstreamer_multistream_test 2022-09-12 22:44:54 +05:30
meson.build test: gstreamer: Add a test for gstreamer multi stream 2021-09-24 18:01:15 +09:00