X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FSLCommandHandler.cpp;h=4d95fad47e4d11b9ff945dbdc824187dffb5176d;hb=682b21deec9c67b205fd04319fa43cd753624244;hp=dbf9d0957921b21f6cfd5e77a5be2ecca1230a6a;hpb=1c38352afd9a1a10de4fb4f751ef08b613f6f958;p=deb_libcec.git diff --git a/src/lib/implementations/SLCommandHandler.cpp b/src/lib/implementations/SLCommandHandler.cpp index dbf9d09..4d95fad 100644 --- a/src/lib/implementations/SLCommandHandler.cpp +++ b/src/lib/implementations/SLCommandHandler.cpp @@ -99,7 +99,10 @@ bool CSLCommandHandler::ActivateSource(void) } if (!m_bSLEnabled) + { + CLibCEC::AddLog(CEC_LOG_NOTICE, "not activating the source until SL has been initialised"); return true; + } if (m_bActiveSourceSent) return true; @@ -117,7 +120,10 @@ bool CSLCommandHandler::HandleActiveSource(const cec_command &command) { uint16_t iAddress = ((uint16_t)command.parameters[0] << 8) | ((uint16_t)command.parameters[1]); if (iAddress != m_busDevice->GetPhysicalAddress(false)) + { + CLibCEC::AddLog(CEC_LOG_NOTICE, "resetting SL initialised state"); m_bSLEnabled = false; + } return m_processor->SetActiveSource(iAddress); } @@ -332,6 +338,7 @@ bool CSLCommandHandler::HandleStandby(const cec_command &command) { if (command.initiator == CECDEVICE_TV) { + CLibCEC::AddLog(CEC_LOG_NOTICE, "resetting SL initialised state"); m_bSLEnabled = false; m_bPowerStateReset = false; m_bActiveSourceSent = false;