fixed - don't change the device status when sending a delayed source switch
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 11 Oct 2012 10:56:56 +0000 (12:56 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 11 Oct 2012 10:56:56 +0000 (12:56 +0200)
src/lib/implementations/CECCommandHandler.cpp

index eafbc2d4ed3df0af6175137793ac9f59026afe9b..cf0984b02f0a862d5df4dbb010b47351952d119c 100644 (file)
@@ -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();