fall back to the primary client when CCECProcessor::HandleLogicalAddressLost() and...
authorLars Op den Kamp <lars@opdenkamp.eu>
Sun, 7 Oct 2012 13:10:12 +0000 (15:10 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sun, 7 Oct 2012 13:10:12 +0000 (15:10 +0200)
src/lib/CECProcessor.cpp

index 261f4f5e0f06edbac86a89512a73661c9ff1b30e..54fea57f0cb4e4a7961c7677bff8e601dbdda2e9 100644 (file)
@@ -933,6 +933,8 @@ void CCECProcessor::HandleLogicalAddressLost(cec_logical_address oldAddress)
 
   m_libcec->AddLog(CEC_LOG_NOTICE, "logical address %x was taken by another device, allocating a new address", oldAddress);
   CCECClient* client = GetClient(oldAddress);
+  if (!client)
+    client = GetPrimaryClient();
   if (client)
   {
     if (m_addrAllocator)