repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed - only respond to vendor commands for panasonic if we are the destination
[deb_libcec.git]
/
src
/
lib
/
implementations
/
VLCommandHandler.cpp
diff --git
a/src/lib/implementations/VLCommandHandler.cpp
b/src/lib/implementations/VLCommandHandler.cpp
index 072d71182ec2c92ca7c780ab68b41ecb0330c249..a60f897f105ff61c4832d72a94950341a2846d6b 100644
(file)
--- 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)
{
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)
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 &&
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;
{
SendVendorCommandCapabilities(m_processor->GetLogicalAddress(), command.initiator);
return COMMAND_HANDLED;