X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FCECProcessor.cpp;h=b4445f42f921881edb6361d57f45a7498c62136f;hb=9768d06119e3f2f835e0814624485ec631e31e62;hp=e22d13fd969b77d20bd1572f0b8d4f2615671a8e;hpb=29a015832275811fae8c53ba2e478b20b0478f8f;p=deb_libcec.git diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index e22d13f..b4445f4 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -886,3 +886,11 @@ void CCECProcessor::SwitchMonitoring(bool bSwitchTo) if (bSwitchTo) UnregisterClients(); } + +void CCECProcessor::HandleLogicalAddressLost(cec_logical_address address) +{ + m_libcec->AddLog(CEC_LOG_NOTICE, "logical address %x was taken by another device, re-registering the client"); + CCECClient* client = GetClient(address); + if (client) + RegisterClient(client); +}