summaryrefslogtreecommitdiff
path: root/Documentation/getting-started.rst
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2022-11-18 17:14:14 +0100
committerJacopo Mondi <jacopo@jmondi.org>2022-11-21 14:54:26 +0100
commite228a5b7f4090a8e0598e9bcff006aaa0f5c0786 (patch)
tree0aeb109eeed0ab988926968adfbbd011025a802c /Documentation/getting-started.rst
parent40f338be671cb087b0cd7e223aa6100df908128c (diff)
gstreamer: Do not lookup controls by id
The libcamerasrc element looks for the availability of the FrameDurationLimits control by looking it up by numeric control id. The ControlinfoMap::find(unsigned int i) function searches the control numerical identifier on the ContorlInfoMap::idMap_ class member, which might be not initialized if the pipeline handler does not register any control, causing an invalid memory access. Avoid looking up the control by numerical id and use the ControlId instance instead to prevent that. Fixes: ccfe0a1af77c ("gstreamer: Provide framerate support for libcamerasrc") Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'Documentation/getting-started.rst')
0 files changed, 0 insertions, 0 deletions