From: Lars Op den Kamp Date: Thu, 11 Oct 2012 10:56:56 +0000 (+0200) Subject: fixed - don't change the device status when sending a delayed source switch X-Git-Tag: upstream/2.2.0~1^2~15^2^2~14 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=05529b92cea31f5194afe1a675d6898bda9584f9 fixed - don't change the device status when sending a delayed source switch --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index eafbc2d..cf0984b 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -1131,8 +1131,11 @@ bool CCECCommandHandler::ActivateSource(bool bTransmitDelayedCommandsOnly /* = f } // update the power state and menu state - m_busDevice->SetPowerStatus(CEC_POWER_STATUS_ON); - m_busDevice->SetMenuState(CEC_MENU_STATE_ACTIVATED); + if (!bTransmitDelayedCommandsOnly) + { + m_busDevice->SetPowerStatus(CEC_POWER_STATUS_ON); + m_busDevice->SetMenuState(CEC_MENU_STATE_ACTIVATED); + } // vendor specific hook VendorPreActivateSourceHook();