X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fimplementations%2FCECCommandHandler.cpp;h=1773507f54087ecdb516c04999a1c0e40d4b0111;hb=f26ea36763c4e7cca87a128e87326670699700da;hp=336baba0af07e6a1648c74e9bf9e2360c759dee1;hpb=7b74fdfb8d43b0044fc3e55f5f8d9263ed636e3b;p=deb_libcec.git diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index 336baba..1773507 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -48,7 +48,8 @@ CCECCommandHandler::CCECCommandHandler(CCECBusDevice *busDevice) : m_bHandlerInited(false), m_iUseCounter(0), m_expectedResponse(CEC_OPCODE_NONE), - m_bOPTSendDeckStatusUpdateOnActiveSource(true) + m_bOPTSendDeckStatusUpdateOnActiveSource(true), + m_vendorId(CEC_VENDOR_UNKNOWN) { } @@ -987,6 +988,11 @@ bool CCECCommandHandler::ActivateSource(void) primary->SetPowerStatus(CEC_POWER_STATUS_ON); primary->SetMenuState(CEC_MENU_STATE_ACTIVATED); + if ((m_busDevice->GetType() == CEC_DEVICE_TYPE_PLAYBACK_DEVICE || + m_busDevice->GetType() == CEC_DEVICE_TYPE_RECORDING_DEVICE) && + SendDeckStatusUpdateOnActiveSource()) + ((CCECPlaybackDevice *)m_busDevice)->TransmitDeckStatus(CECDEVICE_TV); + if (m_processor->GetPrimaryDevice()->GetPhysicalAddress(false) != 0xffff) { m_processor->SetActiveSource();