X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FVLCommandHandler.cpp;h=fbbfa290c9b021690eca84182f97f1737d783257;hb=2bdfdeefe29b5d897135f5d3d4adc86721334c73;hp=e3d570bf6f1e0dd51ec2965c354f4eaaec2f3738;hpb=8ac9c610be214885ff040d23acb707eeaba1276c;p=deb_libcec.git diff --git a/src/lib/implementations/VLCommandHandler.cpp b/src/lib/implementations/VLCommandHandler.cpp index e3d570b..fbbfa29 100644 --- a/src/lib/implementations/VLCommandHandler.cpp +++ b/src/lib/implementations/VLCommandHandler.cpp @@ -40,25 +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->TransmitMenuState(command.initiator); - } - return false; - } - } - return true; -}