summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-01-01 19:35:21 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-01-02 02:35:25 +0200
commit67dce611e5bf84fd9e4bf29da6f45bd53f64f336 (patch)
treedb9ff240fd4c83f698dfd022757a7f0a25d3217c /include/linux
parent26d9f28c1b67156ab50dc43562d3a54249eb9edb (diff)
libcamera: mediadevice: Fix graph parsing error handling
Most errors recorded during graph parsing are logged but not propagated to the caller. Fix this and delete objects that are created but not successfully added to the graph to avoid memory leaks. As the error code returned from the addObject() and populate*() functions doesn't matter much, turn them into bool functions. Additionally, add a way to query whether the media graph was valid, and clear objects before populating the graph to avoid leaking them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions