cec: update the power status of a device when it's set to CEC_POWER_STATUS_IN_TRANSIT...
[deb_libcec.git] / 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)