Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed - LG didn't switch sources after the TV powered up
  • Loading branch information
opdenkamp committed Mar 7, 2013
1 parent 96cd9b5 commit 34232c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/implementations/SLCommandHandler.cpp
Expand Up @@ -194,6 +194,10 @@ void CSLCommandHandler::HandleVendorCommand01(const cec_command &command)
{
m_processor->GetPrimaryDevice()->SetPowerStatus(CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON);
TransmitVendorCommand0205(command.destination, command.initiator);

CCECBusDevice* dev = m_processor->GetDevice(command.destination);
if (dev && dev->IsHandledByLibCEC() && dev->IsActiveSource())
dev->TransmitActiveSource(false);
}

void CSLCommandHandler::TransmitVendorCommand0205(const cec_logical_address iSource, const cec_logical_address iDestination)
Expand All @@ -204,6 +208,7 @@ void CSLCommandHandler::TransmitVendorCommand0205(const cec_logical_address iSou
response.PushBack(SL_COMMAND_TYPE_HDDRECORDER);

Transmit(response, false, true);
SetSLInitialised();
}

void CSLCommandHandler::HandleVendorCommandPowerOn(const cec_command &command)
Expand Down

0 comments on commit 34232c9

Please sign in to comment.