X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FSLCommandHandler.cpp;h=b6b55ae84a101f7bf599d323f2e09bddc664ff9b;hb=73bbe00fe9228e6a249a3d3b950a00639e0ed647;hp=c9d51ba297de5e4b7a9e50007756c2487e2034dc;hpb=415e9bad3a53bd27ab64550f741042adeccb68f0;p=deb_libcec.git diff --git a/src/lib/implementations/SLCommandHandler.cpp b/src/lib/implementations/SLCommandHandler.cpp index c9d51ba..b6b55ae 100644 --- a/src/lib/implementations/SLCommandHandler.cpp +++ b/src/lib/implementations/SLCommandHandler.cpp @@ -117,6 +117,7 @@ bool CSLCommandHandler::ActivateSource(void) CCECBusDevice *primary = m_processor->GetPrimaryDevice(); primary->SetActiveSource(); + primary->TransmitImageViewOn(); primary->TransmitActiveSource(); return true; } @@ -126,7 +127,7 @@ bool CSLCommandHandler::HandleActiveSource(const cec_command &command) if (command.parameters.size == 2) { uint16_t iAddress = ((uint16_t)command.parameters[0] << 8) | ((uint16_t)command.parameters[1]); - if (iAddress != m_busDevice->GetPhysicalAddress(false)) + if (iAddress != m_processor->GetPrimaryDevice()->GetPhysicalAddress(false)) { ResetSLState(); }