diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-09-09 17:18:03 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-09-13 20:13:24 +0300 |
commit | e832a00bab6153e4bc3044dc413cee24e5181498 (patch) | |
tree | 57dc9120c42d2562711a98996110746c3b947a84 /Documentation | |
parent | 7516d410803309b42f45865eac6dec1a157e1976 (diff) |
libcamera: device_enumerator_udev: Avoid double list lookup
DeviceEnumeratorUdev::populateMediaDevice() searches for orphan devices
in an std::list, and if found removes them using std::list::remove().
This ends up looking up the entry twice. Replace the remove() call with
erase() to fix it.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions