From: Lars Op den Kamp Date: Thu, 29 Dec 2011 01:48:16 +0000 (+0100) Subject: cec: update the power status of a device when it's set to CEC_POWER_STATUS_IN_TRANSIT... X-Git-Tag: upstream/2.2.0~1^2~43^2~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c8f0eef05f41c11d507a81cb648bf29c86f13686;p=deb_libcec.git cec: update the power status of a device when it's set to CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index c2704ae..bd68dfc 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -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)