From: Lars Op den Kamp Date: Fri, 27 Apr 2012 14:09:22 +0000 (+0200) Subject: cec: set the power status to 'on' of a device that requests the currently active... X-Git-Tag: upstream/2.2.0~1^2~29^2^2~6 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=414debf659d8b7d87cfae492ce52d0cfe2ee7935;p=deb_libcec.git cec: set the power status to 'on' of a device that requests the currently active source --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index 82110bc..dc8c70f 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -440,6 +440,7 @@ bool CCECCommandHandler::HandleRequestActiveSource(const cec_command &command) if (m_processor->IsRunning()) { CLibCEC::AddLog(CEC_LOG_DEBUG, ">> %i requests active source", (uint8_t) command.initiator); + m_processor->m_busDevices[command.initiator]->SetPowerStatus(CEC_POWER_STATUS_ON); vector devices; for (size_t iDevicePtr = 0; iDevicePtr < GetMyDevices(devices); iDevicePtr++)