X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FVLCommandHandler.cpp;h=fbbfa290c9b021690eca84182f97f1737d783257;hb=37b0c5724f06a98e14686695b5089f66ac657f11;hp=89f5b2eadebc5668436040c68b841e4c4b798f0d;hpb=bb5b4874f081aea758af58eae11f4729fc679650;p=deb_libcec.git diff --git a/src/lib/implementations/VLCommandHandler.cpp b/src/lib/implementations/VLCommandHandler.cpp index 89f5b2e..fbbfa29 100644 --- a/src/lib/implementations/VLCommandHandler.cpp +++ b/src/lib/implementations/VLCommandHandler.cpp @@ -40,27 +40,3 @@ CVLCommandHandler::CVLCommandHandler(CCECBusDevice *busDevice) : CCECCommandHandler(busDevice) { } - -bool CVLCommandHandler::HandleSetStreamPath(const cec_command &command) -{ - if (command.parameters.size >= 2) - { - int streamaddr = ((uint16_t)command.parameters[0] << 8) | ((uint16_t)command.parameters[1]); - CStdString strLog; - strLog.Format(">> %i requests stream path from physical address %04x", command.initiator, streamaddr); - 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) - { - return device->BroadcastActiveSource() && - device->BroadcastActiveView() && - initiatorDevice->ReportMenuState(); - } - return false; - } - } - return true; -}