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> |
||
---|---|---|
.. | ||
gstlibcamera-utils.cpp | ||
gstlibcamera-utils.h | ||
gstlibcamera.cpp | ||
gstlibcameraallocator.cpp | ||
gstlibcameraallocator.h | ||
gstlibcamerapad.cpp | ||
gstlibcamerapad.h | ||
gstlibcamerapool.cpp | ||
gstlibcamerapool.h | ||
gstlibcameraprovider.cpp | ||
gstlibcameraprovider.h | ||
gstlibcamerasrc.cpp | ||
gstlibcamerasrc.h | ||
meson.build |