summaryrefslogtreecommitdiff
path: root/src/gstreamer/gstlibcamerapad.h
diff options
context:
space:
mode:
authorBarnabás Pőcze <pobrn@protonmail.com>2022-11-26 23:42:27 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-11-28 16:11:20 +0200
commit1cd7646f970d90f3c8bec02259a2415c5cf89016 (patch)
tree6e7187b349021cdddf2dfa1ef334dfb60298e8ec /src/gstreamer/gstlibcamerapad.h
parentb35f04b3c19487de903b67340fcfb801557295d3 (diff)
libcamera: framebuffer_allocator: Avoid double map lookup
Use `try_emplace()` on the map instead of `count()` and `operator[]` to avoid walking the tree twice. Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/gstreamer/gstlibcamerapad.h')
0 files changed, 0 insertions, 0 deletions