update the device status to CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON after sendin...
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 15 Oct 2012 11:34:35 +0000 (13:34 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 15 Oct 2012 11:34:35 +0000 (13:34 +0200)
src/lib/implementations/CECCommandHandler.cpp

index 831825da263fdeb2167e890583fd50070cdaeed3..5398513ab52fa8a5d20ed949d041bcb882091422 100644 (file)
@@ -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)