return true;
}
- cec_logical_address sourceLA = m_busDevice->GetLogicalAddress();
- if (sourceLA == CECDEVICE_TV)
- sourceLA = m_processor->GetPrimaryDevice()->GetLogicalAddress();
-
- cec_power_status powerStatus = m_busDevice->GetPowerStatus(sourceLA);
-
CLockObject lock(m_mutex);
- m_bPowerUpEventReceived = (powerStatus == CEC_POWER_STATUS_ON);
+ m_bPowerUpEventReceived = (m_busDevice->GetCurrentPowerStatus() == CEC_POWER_STATUS_ON);
return m_bPowerUpEventReceived;
}
+int CVLCommandHandler::HandleStandby(const cec_command &command)
+{
+ {
+ CLockObject lock(m_mutex);
+ m_bPowerUpEventReceived = false;
+ }
+
+ return CCECCommandHandler::HandleStandby(command);
+}
+
int CVLCommandHandler::HandleVendorCommand(const cec_command &command)
{
// some vendor command voodoo that will enable more buttons on the remote