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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user