From: Lars Op den Kamp Date: Mon, 15 Oct 2012 11:34:35 +0000 (+0200) Subject: update the device status to CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON after sendin... X-Git-Tag: upstream/2.2.0~1^2~14^2^2~2 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=8e2366b9bb4f44962b6692add43148c114430a55 update the device status to CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON after sending an image view on command and the status isn't 'on' yet --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index 831825d..5398513 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -817,7 +817,14 @@ bool CCECCommandHandler::TransmitImageViewOn(const cec_logical_address iInitiato cec_command command; cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_IMAGE_VIEW_ON); - return Transmit(command, false, false); + if (Transmit(command, false, false)) + { + CCECBusDevice* dest = m_processor->GetDevice(iDestination); + if (dest && dest->GetCurrentPowerStatus() != CEC_POWER_STATUS_ON) + dest->SetPowerStatus(CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON); + return true; + } + return false; } bool CCECCommandHandler::TransmitStandby(const cec_logical_address iInitiator, const cec_logical_address iDestination)