cec: also send a menu state update when activating the source in CVLCommandHandler...
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 4 Jun 2012 08:49:23 +0000 (10:49 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 4 Jun 2012 09:08:25 +0000 (11:08 +0200)
src/lib/implementations/VLCommandHandler.cpp

index 59eb5747cb6cc9693415286f836337647c5e1aab..06468f890d46126cd4b6c75258ca4edb272a80bb 100644 (file)
@@ -121,7 +121,8 @@ bool CVLCommandHandler::TransmitActiveSource(const cec_logical_address iInitiato
   else
   {
     // transmit standard active source message
-    return CCECCommandHandler::TransmitActiveSource(iInitiator, iPhysicalAddress);
+    return CCECCommandHandler::TransmitActiveSource(iInitiator, iPhysicalAddress) &&
+        TransmitMenuState(iInitiator, CECDEVICE_TV, CEC_MENU_STATE_ACTIVATED);
   }
 }
 
@@ -137,7 +138,8 @@ bool CVLCommandHandler::TransmitPendingActiveSourceCommands(void)
   if (bTransmitCommand)
   {
     LIB_CEC->AddLog(CEC_LOG_DEBUG, "transmitting delayed activate source command");
-    return CCECCommandHandler::TransmitActiveSource(m_busDevice->GetLogicalAddress(), m_busDevice->GetCurrentPhysicalAddress());
+    return CCECCommandHandler::TransmitActiveSource(m_busDevice->GetLogicalAddress(), m_busDevice->GetCurrentPhysicalAddress()) &&
+        TransmitMenuState(m_busDevice->GetLogicalAddress(), CECDEVICE_TV, CEC_MENU_STATE_ACTIVATED);
   }
   return true;
 }