From f2e1f4310d2577b542f219cd98b8b37afb98768a Mon Sep 17 00:00:00 2001 From: Sharad Binjola Date: Thu, 28 Sep 2023 15:40:28 -0700 Subject: [PATCH] Fixing Linux build issue due to shadowing --- .../tv-casting-app/tv-casting-common/src/CastingServer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/tv-casting-app/tv-casting-common/src/CastingServer.cpp b/examples/tv-casting-app/tv-casting-common/src/CastingServer.cpp index 79e615ff765a07..c328eb888b8f45 100644 --- a/examples/tv-casting-app/tv-casting-common/src/CastingServer.cpp +++ b/examples/tv-casting-app/tv-casting-common/src/CastingServer.cpp @@ -479,12 +479,12 @@ void CastingServer::VerifyOrEstablishConnectionTask(chip::System::Layer * aSyste videoPlayer->GetEndpoint(1)); // Read MACAddress from cached VideoPlayer endpoint (1) which supports WoL CastingServer::GetInstance()->mOnConnectionSuccessClientCallback(videoPlayer); }, - [](CHIP_ERROR err) { + [](CHIP_ERROR error) { ChipLogProgress(AppServer, "Deleting VideoPlayer from cache after connection failure: %" CHIP_ERROR_FORMAT, - err.Format()); + error.Format()); CastingServer::GetInstance()->mPersistenceManager.DeleteVideoPlayer( &CastingServer::GetInstance()->mActiveTargetVideoPlayerInfo); - CastingServer::GetInstance()->mOnConnectionFailureClientCallback(err); + CastingServer::GetInstance()->mOnConnectionFailureClientCallback(error); }); if (err != CHIP_NO_ERROR) {