diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-10-25 23:47:22 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-11-20 21:47:26 +0200 |
commit | 76b9923e55fd615d0edf065085a4c14475304868 (patch) | |
tree | 945a1913ae751f0d69b19b37001cbfd9564227d9 /test/pipeline/meson.build | |
parent | 4034e45f0ae86932b8e06f578657a121318ef3d2 (diff) |
libcamera: controls: Avoid exception in ControlInfoMap count() and find()
The ControlInfoMap count() and find() methods use at() to lookup the
control numerical ID in the idmap_. This causes an exception to be
thrown if the ID doesn't exist in the map. Fix it by using the find()
method instead in find(), and rely on idmap_.count() in count().
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'test/pipeline/meson.build')
0 files changed, 0 insertions, 0 deletions