X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FANCommandHandler.cpp;fp=src%2Flib%2Fimplementations%2FANCommandHandler.cpp;h=93e8c92147df584f2cf771c46b9e6629082c6dc3;hp=7e0e9b9062eb977d4278c68613e98476f9acdc7a;hb=b45bdacdeee5c96e0294717fbe2c47a49a110fd1;hpb=81e38211724bc6e8bd7a60f484433053ed682635 diff --git a/src/lib/implementations/ANCommandHandler.cpp b/src/lib/implementations/ANCommandHandler.cpp index 7e0e9b9..93e8c92 100644 --- a/src/lib/implementations/ANCommandHandler.cpp +++ b/src/lib/implementations/ANCommandHandler.cpp @@ -116,3 +116,13 @@ int CANCommandHandler::HandleDeviceVendorCommandWithId(const cec_command &comman } return CEC_ABORT_REASON_INVALID_OPERAND; } + +int CANCommandHandler::HandleSetMenuLanguage(const cec_command &command) +{ + if (m_processor->CECInitialised() && command.initiator == CECDEVICE_TV && command.destination == CECDEVICE_BROADCAST) + { + m_processor->GetDevice(command.initiator)->SetPowerStatus(CEC_POWER_STATUS_ON); + } + + return CCECCommandHandler::HandleSetMenuLanguage(command); +}