diff options
author | Javier Martinez Canillas <javierm@redhat.com> | 2021-10-01 23:15:24 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-10-05 03:30:36 +0300 |
commit | f0139ed11ae7c7afeae8fa4a2a5c5d7aa9cddc5f (patch) | |
tree | 29b07fb2b47ae5a3db0bd5c692f7daf1ade94fb1 /utils/hooks/post-commit | |
parent | 31403b0f2a660180d8f1ac5e1e4e1cb82e7060dd (diff) |
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>
Diffstat (limited to 'utils/hooks/post-commit')
0 files changed, 0 insertions, 0 deletions