From: Lars Op den Kamp Date: Thu, 11 Oct 2012 11:19:40 +0000 (+0200) Subject: fixed - don't send 'image view on' when the TV is already powering up X-Git-Tag: upstream/2.2.0~1^2~15^2^2~11 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=9fd25e9ca2215b10678b3b6660a34116744d205f fixed - don't send 'image view on' when the TV is already powering up --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index 08bc528..8dcc255 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -1145,7 +1145,10 @@ bool CCECCommandHandler::ActivateSource(bool bTransmitDelayedCommandsOnly /* = f bool bTvPresent = (tv && tv->GetStatus() == CEC_DEVICE_STATUS_PRESENT); bool bActiveSourceFailed(false); if (bTvPresent) - bActiveSourceFailed = !m_busDevice->TransmitImageViewOn(); + { + if (tv->GetCurrentPowerStatus() != CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON) + bActiveSourceFailed = !m_busDevice->TransmitImageViewOn(); + } else LIB_CEC->AddLog(CEC_LOG_DEBUG, "TV not present, not sending 'image view on'");