}
return false;
}
+
+bool CSLCommandHandler::HandleFeatureAbort(const cec_command &command)
+{
+ if (command.parameters.size == 0 && m_processor->GetPrimaryDevice()->GetPowerStatus() == CEC_POWER_STATUS_ON && !m_bSLEnabled)
+ {
+ m_processor->GetPrimaryDevice()->TransmitPowerState(command.initiator);
+ m_processor->GetPrimaryDevice()->TransmitVendorID(CECDEVICE_BROADCAST, false);
+ }
+
+ return CCECCommandHandler::HandleFeatureAbort(command);
+}
+
+bool CSLCommandHandler::HandleStandby(const cec_command &command)
+{
+ if (command.initiator == CECDEVICE_TV)
+ {
+ m_bSLEnabled = false;
+ m_bPowerStateReset = false;
+ m_bActiveSourceSent = false;
+ }
+
+ CCECBusDevice *device = GetDevice(command.initiator);
+ if (device)
+ device->SetPowerStatus(CEC_POWER_STATUS_STANDBY);
+
+ return true;
+}
virtual bool HandleGiveDevicePowerStatus(const cec_command &command);
virtual bool HandleGiveDeckStatus(const cec_command &command);
virtual bool HandleRequestActiveSource(const cec_command &command);
+ virtual bool HandleFeatureAbort(const cec_command &command);
+ virtual bool HandleStandby(const cec_command &command);
bool m_bSLEnabled;
bool m_bPowerStateReset;