X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FVLCommandHandler.cpp;h=d1c7605e3d83574b1f172b47fd6cd3cf35c2e9f0;hb=1162157634cc45c1b30b3ae7b7c049e717d06375;hp=89f5b2eadebc5668436040c68b841e4c4b798f0d;hpb=bb5b4874f081aea758af58eae11f4729fc679650;p=deb_libcec.git diff --git a/src/lib/implementations/VLCommandHandler.cpp b/src/lib/implementations/VLCommandHandler.cpp index 89f5b2e..d1c7605 100644 --- a/src/lib/implementations/VLCommandHandler.cpp +++ b/src/lib/implementations/VLCommandHandler.cpp @@ -51,13 +51,12 @@ bool CVLCommandHandler::HandleSetStreamPath(const cec_command &command) m_busDevice->AddLog(CEC_LOG_DEBUG, strLog.c_str()); if (streamaddr == m_busDevice->GetMyPhysicalAddress()) { - CCECBusDevice *device = GetThisDevice(); - CCECBusDevice *initiatorDevice = GetDevice(command.initiator); - if (device && initiatorDevice) + CCECBusDevice *device = GetDevice(command.destination); + if (device) { - return device->BroadcastActiveSource() && - device->BroadcastActiveView() && - initiatorDevice->ReportMenuState(); + return device->TransmitActiveSource() && + device->TransmitActiveView() && + device->TransmitMenuState(command.initiator); } return false; }