added HandleLogicalAddressLost() callback to IAdapterCommunication
[deb_libcec.git] / src / lib / CECProcessor.cpp
index e22d13fd969b77d20bd1572f0b8d4f2615671a8e..b4445f42f921881edb6361d57f45a7498c62136f 100644 (file)
@@ -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);
+}