X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FSLCommandHandler.cpp;h=0f007176d623f9e83732abbef114790b97446d28;hb=37b0c5724f06a98e14686695b5089f66ac657f11;hp=713eebbde364432419673e8ba6593c987d6ceaf0;hpb=0e54ee2e232fa018c158f3a6e5eaaae18bf1d05f;p=deb_libcec.git diff --git a/src/lib/implementations/SLCommandHandler.cpp b/src/lib/implementations/SLCommandHandler.cpp index 713eebb..0f00717 100644 --- a/src/lib/implementations/SLCommandHandler.cpp +++ b/src/lib/implementations/SLCommandHandler.cpp @@ -145,8 +145,8 @@ void CSLCommandHandler::HandleVendorCommandPowerOn(const cec_command &command) void CSLCommandHandler::HandleVendorCommandSLConnect(const cec_command &command) { m_bSLEnabled = true; + m_processor->m_busDevices[command.initiator]->SetActiveSource(); m_processor->m_busDevices[command.destination]->TransmitActiveSource(); - m_processor->SetStreamPath(m_processor->m_busDevices[command.destination]->GetPhysicalAddress(false)); TransmitVendorCommand05(command.destination, command.initiator); TransmitDeckStatus(command.initiator); } @@ -256,7 +256,10 @@ bool CSLCommandHandler::InitHandler(void) CCECBusDevice *primary = m_processor->m_busDevices[m_processor->GetLogicalAddresses().primary]; if (m_busDevice->GetLogicalAddress() != primary->GetLogicalAddress()) + { primary->SetVendorId(CEC_VENDOR_LG, false); + primary->TransmitVendorID(CECDEVICE_TV, false); + } if (m_busDevice->GetLogicalAddress() == CECDEVICE_TV) { @@ -286,6 +289,7 @@ bool CSLCommandHandler::InitHandler(void) device->GetType() == CEC_DEVICE_TYPE_RECORDING_DEVICE)) { ((CCECPlaybackDevice *)device)->SetDeckStatus(CEC_DECK_INFO_OTHER_STATUS_LG); + ((CCECPlaybackDevice *)device)->TransmitDeckStatus(CECDEVICE_TV); } } }