cec: set the power status to 'on' of a device that requests the currently active...
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 27 Apr 2012 14:09:22 +0000 (16:09 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 27 Apr 2012 14:09:22 +0000 (16:09 +0200)
src/lib/implementations/CECCommandHandler.cpp

index 82110bcec58bd667a32b89b9b6c65e5297b1d831..dc8c70f34deeefb5f8c150e142fc0d30001d302a 100644 (file)
@@ -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<CCECBusDevice *> devices;
     for (size_t iDevicePtr = 0; iDevicePtr < GetMyDevices(devices); iDevicePtr++)