fixed - don't send 'image view on' when the TV is already powering up
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 11 Oct 2012 11:19:40 +0000 (13:19 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 11 Oct 2012 11:19:48 +0000 (13:19 +0200)
src/lib/implementations/CECCommandHandler.cpp

index 08bc528430cb81b184dd60a3b59b5c025f211c32..8dcc2559dbad3eb8e57cec211dfcef8ad6453132 100644 (file)
@@ -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'");