From: Lars Op den Kamp Date: Mon, 4 Jun 2012 08:49:23 +0000 (+0200) Subject: cec: also send a menu state update when activating the source in CVLCommandHandler... X-Git-Tag: upstream/2.2.0~1^2~23^2^2~9 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=6d7c0fa8175a5e8525dc6faacd6d156938353ec4 cec: also send a menu state update when activating the source in CVLCommandHandler. should fix keypress routing for panasonic --- diff --git a/src/lib/implementations/VLCommandHandler.cpp b/src/lib/implementations/VLCommandHandler.cpp index 59eb574..06468f8 100644 --- a/src/lib/implementations/VLCommandHandler.cpp +++ b/src/lib/implementations/VLCommandHandler.cpp @@ -121,7 +121,8 @@ bool CVLCommandHandler::TransmitActiveSource(const cec_logical_address iInitiato else { // transmit standard active source message - return CCECCommandHandler::TransmitActiveSource(iInitiator, iPhysicalAddress); + return CCECCommandHandler::TransmitActiveSource(iInitiator, iPhysicalAddress) && + TransmitMenuState(iInitiator, CECDEVICE_TV, CEC_MENU_STATE_ACTIVATED); } } @@ -137,7 +138,8 @@ bool CVLCommandHandler::TransmitPendingActiveSourceCommands(void) if (bTransmitCommand) { LIB_CEC->AddLog(CEC_LOG_DEBUG, "transmitting delayed activate source command"); - return CCECCommandHandler::TransmitActiveSource(m_busDevice->GetLogicalAddress(), m_busDevice->GetCurrentPhysicalAddress()); + return CCECCommandHandler::TransmitActiveSource(m_busDevice->GetLogicalAddress(), m_busDevice->GetCurrentPhysicalAddress()) && + TransmitMenuState(m_busDevice->GetLogicalAddress(), CECDEVICE_TV, CEC_MENU_STATE_ACTIVATED); } return true; }