X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FVLCommandHandler.cpp;h=fbbfa290c9b021690eca84182f97f1737d783257;hb=c23380e74349bd4bae7718b66a78a07a51a6f0fe;hp=d1c7605e3d83574b1f172b47fd6cd3cf35c2e9f0;hpb=29912296089b5266f2c7e49e621c135b9f023313;p=deb_libcec.git diff --git a/src/lib/implementations/VLCommandHandler.cpp b/src/lib/implementations/VLCommandHandler.cpp index d1c7605..fbbfa29 100644 --- a/src/lib/implementations/VLCommandHandler.cpp +++ b/src/lib/implementations/VLCommandHandler.cpp @@ -40,26 +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 = GetDevice(command.destination); - if (device) - { - return device->TransmitActiveSource() && - device->TransmitActiveView() && - device->TransmitMenuState(command.initiator); - } - return false; - } - } - return true; -}