libcamera: pipeline: Prevent variable shadowing

Remove variable shadowing within the pipeline handler implementations.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Kieran Bingham
2020-07-28 13:34:36 +01:00
parent f4c234579b
commit d3f60c8458
4 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -490,8 +490,8 @@ int UVCCameraData::init(MediaDevice *media)
/* Locate and initialise the camera data with the default video node. */
const std::vector<MediaEntity *> &entities = media->entities();
auto entity = std::find_if(entities.begin(), entities.end(),
[](MediaEntity *entity) {
return entity->flags() & MEDIA_ENT_FL_DEFAULT;
[](MediaEntity *e) {
return e->flags() & MEDIA_ENT_FL_DEFAULT;
});
if (entity == entities.end()) {
LOG(UVC, Error) << "Could not find a default video device";