From: Lars Op den Kamp Date: Fri, 25 Nov 2011 12:23:22 +0000 (+0100) Subject: cec: fixed - don't report a changed physical address when it hasn't changed X-Git-Tag: upstream/2.2.0~1^2~44^2~95 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b8176e3ce6b8d9c9e6e91a2aeb64243ad37e4234;p=deb_libcec.git cec: fixed - don't report a changed physical address when it hasn't changed --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index a23c4e0..5ca9b57 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -423,7 +423,7 @@ void CCECBusDevice::SetDeviceStatus(const cec_bus_device_status newStatus) void CCECBusDevice::SetPhysicalAddress(uint16_t iNewAddress) { CLockObject lock(&m_mutex); - if (iNewAddress > 0) + if (iNewAddress > 0 && m_iPhysicalAddress != iNewAddress) { CStdString strLog; strLog.Format(">> %s (%X): physical address changed from %04x to %04x", GetLogicalAddressName(), m_iLogicalAddress, m_iPhysicalAddress, iNewAddress);