From: Lars Op den Kamp Date: Sun, 7 Oct 2012 13:10:12 +0000 (+0200) Subject: fall back to the primary client when CCECProcessor::HandleLogicalAddressLost() and... X-Git-Tag: upstream/2.2.0~1^2~17^2^2~17 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=97638c44c01d17920391df503de2552ae8fd175d fall back to the primary client when CCECProcessor::HandleLogicalAddressLost() and no client could be found --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 261f4f5..54fea57 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -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)