Permalink
Browse files

changed: don't treat failed acks from the tv as error when sending an…

… active source message
  • Loading branch information...
opdenkamp committed Jul 3, 2015
1 parent b0ec2ba commit a356efa2de859c080d150f3e53072ece23fc8cba
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/libcec/implementations/CECCommandHandler.cpp
@@ -1253,7 +1253,7 @@ bool CCECCommandHandler::ActivateSource(bool bTransmitDelayedCommandsOnly /* = f
bool bTvPresent = (tv && tv->GetStatus() == CEC_DEVICE_STATUS_PRESENT);
bool bActiveSourceFailed(false);
if (bTvPresent)
bActiveSourceFailed = !tv->PowerOn(m_busDevice->GetLogicalAddress());
tv->PowerOn(m_busDevice->GetLogicalAddress());
else
LIB_CEC->AddLog(CEC_LOG_DEBUG, "TV not present, not sending 'image view on'");
@@ -1267,7 +1267,7 @@ bool CCECCommandHandler::ActivateSource(bool bTransmitDelayedCommandsOnly /* = f
{
bActiveSourceFailed = !m_busDevice->TransmitActiveSource(false);
if (bTvPresent && !bActiveSourceFailed)
bActiveSourceFailed = !m_busDevice->TransmitMenuState(CECDEVICE_TV, false);
m_busDevice->TransmitMenuState(CECDEVICE_TV, false);
// update the deck status for playback devices
if (bTvPresent && !bActiveSourceFailed)

0 comments on commit a356efa

Please sign in to comment.