From: Lars Op den Kamp Date: Wed, 5 Sep 2012 13:07:02 +0000 (+0200) Subject: rpi: only notify libCEC that we lost our LA when the connection was initialised X-Git-Tag: upstream/2.2.0~1^2~18^2^2~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=40119e0c9b321d3c4a93bc20880c6385800c9757;p=deb_libcec.git rpi: only notify libCEC that we lost our LA when the connection was initialised --- diff --git a/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp b/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp index 79d73ba..5d13368 100644 --- a/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp +++ b/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp @@ -194,7 +194,9 @@ void CRPiCECAdapterCommunication::OnDataReceived(uint32_t header, uint32_t p0, u cec_logical_address previousAddress = m_logicalAddress; m_logicalAddress = CECDEVICE_UNKNOWN; - m_callback->HandleLogicalAddressLost(previousAddress); + // notify libCEC that we lost our LA when the connection was initialised + if (m_bInitialised) + m_callback->HandleLogicalAddressLost(previousAddress); } break; case VC_CEC_TOPOLOGY: