cec: update the power status of a device when it's set to CEC_POWER_STATUS_IN_TRANSIT...
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 29 Dec 2011 01:48:16 +0000 (02:48 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 29 Dec 2011 01:48:16 +0000 (02:48 +0100)
src/lib/devices/CECBusDevice.cpp

index c2704ae56bbbe79dc91bfc9649e30a39ad821c5a..bd68dfc1f8e555fede5920b7bd6a690dbf6c78e4 100644 (file)
@@ -299,7 +299,8 @@ cec_power_status CCECBusDevice::GetPowerStatus(bool bUpdate /* = false */)
   {
     CLockObject lock(&m_mutex);
     bRequestUpdate = (GetStatus() == CEC_DEVICE_STATUS_PRESENT &&
-        (bUpdate || m_powerStatus == CEC_POWER_STATUS_UNKNOWN));
+        (bUpdate || m_powerStatus == CEC_POWER_STATUS_UNKNOWN ||
+            m_powerStatus == CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON));
   }
 
   if (bRequestUpdate)