fixed - don't update the device status of unregistered/broadcast
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 11 Oct 2012 12:41:57 +0000 (14:41 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 11 Oct 2012 12:41:57 +0000 (14:41 +0200)
src/lib/devices/CECBusDevice.cpp

index 688cb12d7532330c346cdaca8bdb74413a024fc5..b42230dd41201913a0331e18f3b9c57aee874ec7 100644 (file)
@@ -759,6 +759,9 @@ cec_bus_device_status CCECBusDevice::GetStatus(bool bForcePoll /* = false */, bo
 
 void CCECBusDevice::SetDeviceStatus(const cec_bus_device_status newStatus, cec_version libCECSpecVersion /* = CEC_VERSION_1_4 */)
 {
+  if (m_iLogicalAddress == CECDEVICE_UNREGISTERED)
+    return;
+
   {
     CLockObject lock(m_mutex);
     switch (newStatus)