diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-09-03 17:44:00 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-09-07 00:32:10 +0300 |
commit | 6225d647b47982833fa654bf9cf65eb8c04d2036 (patch) | |
tree | d637ce08b3931db06ffb5acd15a50419eeea5096 /src/qcam/assets/feathericons/pie-chart.svg | |
parent | f98919307e411c57f24de7587b22ac90a7850bdc (diff) |
pipeline: uvcvideo: Fail match() if the camera has no supported format
A UVC device could expose only formats that are not supported by
libcamera. The pipeline handler doesn't currently consider this as an
error, and happily creates a camera. The camera won't be usable, and
worse, generateConfiguration() and validate() will crash as those
functions assume that at least one format is supported.
Fix this by failing match() if none of the formats exposed by the camera
are supported. Log an error message in that case to notify the user.
Bug: https://bugs.libcamera.org/show_bug.cgi?id=145
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Tested-by: Christian Rauch <Rauch.Christian@gmx.de>
Diffstat (limited to 'src/qcam/assets/feathericons/pie-chart.svg')
0 files changed, 0 insertions, 0 deletions