cec: fixed - don't report a changed physical address when it hasn't changed
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 25 Nov 2011 12:23:22 +0000 (13:23 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 25 Nov 2011 12:23:22 +0000 (13:23 +0100)
src/lib/devices/CECBusDevice.cpp

index a23c4e07187c80620fbf5f5791697b5730876a8b..5ca9b5781f4b9411e18965bb5ca77c3460dc2737 100644 (file)
@@ -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);