From: Lars Op den Kamp Date: Mon, 8 Oct 2012 12:19:31 +0000 (+0200) Subject: fixed - only respond to vendor commands for panasonic if we are the destination X-Git-Tag: upstream/2.2.0~1^2~17^2^2~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b57695e80ecb4d0e44b3bb4df0f4c6756e8a7aa9;p=deb_libcec.git fixed - only respond to vendor commands for panasonic if we are the destination --- diff --git a/src/lib/implementations/VLCommandHandler.cpp b/src/lib/implementations/VLCommandHandler.cpp index 072d711..a60f897 100644 --- a/src/lib/implementations/VLCommandHandler.cpp +++ b/src/lib/implementations/VLCommandHandler.cpp @@ -90,6 +90,9 @@ bool CVLCommandHandler::InitHandler(void) int CVLCommandHandler::HandleDeviceVendorCommandWithId(const cec_command &command) { + if (!m_processor->IsHandledByLibCEC(command.destination)) + return CEC_ABORT_REASON_INVALID_OPERAND; + if (command.parameters[0] != 0x00 || command.parameters[1] != 0x80 || command.parameters[2] != 0x45) @@ -233,7 +236,8 @@ int CVLCommandHandler::HandleVendorCommand(const cec_command &command) if (command.parameters.size == 3 && command.parameters[0] == 0x10 && command.parameters[1] == 0x01 && - command.parameters[2] == 0x05) + command.parameters[2] == 0x05 && + m_processor->IsHandledByLibCEC(command.destination)) { SendVendorCommandCapabilities(m_processor->GetLogicalAddress(), command.initiator); return COMMAND_HANDLED;