libcamera/src/gstreamer
Javier Martinez Canillas f0139ed11a gstreamer: Check if Stream configurations were generated correctly
Currently, the gst_libcamera_device_new() function assumes that a call to
Camera::generateConfiguration() will always succeed, but that may not be
the case and the return value must to be checked.

Otherwise, this could lead to a NULL pointer dereference if the pipeline
handler fails to generate a config for the VideoRecording stream role.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2021-10-05 03:30:36 +03:00
..
gstlibcamera-utils.cpp gstreamer: Fix spelling of the work manager used in a util function 2021-09-28 04:27:58 +03:00
gstlibcamera-utils.h gstreamer: Fix spelling of the work manager used in a util function 2021-09-28 04:27:58 +03:00
gstlibcamera.cpp gstreamer: Omit extra semicolons 2020-10-20 13:15:47 +03:00
gstlibcameraallocator.cpp gstreamer: gstlibcameraallocator: Use offset in creating a buffer 2021-08-30 18:08:02 +03:00
gstlibcameraallocator.h gst: Use the streams of CameraConfiguration when allocating buffers 2021-03-15 02:13:19 +02:00
gstlibcamerapad.cpp gstreamer: Omit extra semicolons 2020-10-20 13:15:47 +03:00
gstlibcamerapad.h gst: libcamerasrc: Implement timestamp support 2020-03-07 01:58:08 +02:00
gstlibcamerapool.cpp gst: pool: Fix GstBuffer leak on error 2021-03-12 00:46:07 +02:00
gstlibcamerapool.h gst: Add getters for Stream and FrameBuffer 2020-03-07 01:58:08 +02:00
gstlibcameraprovider.cpp gstreamer: Check if Stream configurations were generated correctly 2021-10-05 03:30:36 +03:00
gstlibcameraprovider.h gst: Add initial device provider 2020-03-07 01:57:45 +02:00
gstlibcamerasrc.cpp gstreamer: Fix spelling of the work manager used in a util function 2021-09-28 04:27:58 +03:00
gstlibcamerasrc.h Add GStreamer plugin and element skeleton 2020-03-07 01:57:42 +02:00
meson.build libcamera: rename public libcamera dependency 2021-06-25 16:11:11 +01:00