From: Lars Op den Kamp Date: Mon, 13 Feb 2012 12:22:42 +0000 (+0100) Subject: cec: added a couple of debug lines X-Git-Tag: upstream/2.2.0~1^2~35^2~77 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=682b21deec9c67b205fd04319fa43cd753624244 cec: added a couple of debug lines --- 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;