repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: also send a menu state update when activating the source in CVLCommandHandler...
[deb_libcec.git]
/
src
/
lib
/
implementations
/
VLCommandHandler.cpp
diff --git
a/src/lib/implementations/VLCommandHandler.cpp
b/src/lib/implementations/VLCommandHandler.cpp
index 59eb5747cb6cc9693415286f836337647c5e1aab..06468f890d46126cd4b6c75258ca4edb272a80bb 100644
(file)
--- a/
src/lib/implementations/VLCommandHandler.cpp
+++ b/
src/lib/implementations/VLCommandHandler.cpp
@@
-121,7
+121,8
@@
bool CVLCommandHandler::TransmitActiveSource(const cec_logical_address iInitiato
else
{
// transmit standard active source message
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");
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;
}
}
return true;
}