summaryrefslogtreecommitdiff
path: root/test/v4l2_device
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-01-31 20:47:39 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-02-01 11:42:00 +0200
commit6f3503981a4f20ef3e939a9b91c29ef12d95efd2 (patch)
tree077601839309287b8b60c2e14f31f1b320051323 /test/v4l2_device
parent69be770715769bf15fab69bdb650fbcbc0e74db1 (diff)
cam: options: Store options in a list instead of a vector
When option are added to the parser, they are stored in the OptionsParser::options_ vector, and a pointer to the option referencing the vector entry is indexed in the OptionsParser::optionsMap_ map. When the next option is added the vector may be resized, which invalidates the pointers stored in the map. Fix this by storing the options in an std::list<> instead of std::vector<>. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'test/v4l2_device')
0 files changed, 0 insertions, 0 deletions