-bool CSLCommandHandler::ActivateSource(void)
-{
- if (!SLInitialised())
- {
- CLibCEC::AddLog(CEC_LOG_NOTICE, "not activating the source until SL has been initialised");
- return true;
- }
-
- {
- CLockObject lock(m_SLMutex);
- if (m_bActiveSourceSent)
- return true;
- m_bActiveSourceSent = true;
- }
-
- CCECBusDevice *primary = m_processor->GetPrimaryDevice();
- primary->SetActiveSource();
- primary->TransmitImageViewOn();
- primary->TransmitActiveSource();
- return true;
-}
-