From b57695e80ecb4d0e44b3bb4df0f4c6756e8a7aa9 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Mon, 8 Oct 2012 14:19:31 +0200 Subject: [PATCH] fixed - only respond to vendor commands for panasonic if we are the destination --- src/lib/implementations/VLCommandHandler.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.34.1