repositories
/
deb_libcec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3da307
)
cec: check whether the initiator is valid in CCECProcessor::ParseCommand(). fixes...
author
Lars Op den Kamp
<lars@opdenkamp.eu>
Fri, 11 Nov 2011 22:52:47 +0000
(23:52 +0100)
committer
Lars Op den Kamp
<lars@opdenkamp.eu>
Fri, 11 Nov 2011 22:52:47 +0000
(23:52 +0100)
src/lib/CECProcessor.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/CECProcessor.cpp
b/src/lib/CECProcessor.cpp
index bdcb4d3e816deadbde7385d1dbab0c91e40ddbde..cc8d86eb471e844345b8c4c0276536072ba4db63 100644
(file)
--- a/
src/lib/CECProcessor.cpp
+++ b/
src/lib/CECProcessor.cpp
@@
-659,7
+659,7
@@
void CCECProcessor::ParseCommand(cec_command &command)
dataStr.AppendFormat(":%02x", (unsigned int)command.parameters[iPtr]);
m_controller->AddLog(CEC_LOG_TRAFFIC, dataStr.c_str());
- if (!m_bMonitor)
+ if (!m_bMonitor
&& command.initiator >= CECDEVICE_TV && command.initiator < CECDEVICE_BROADCAST
)
m_busDevices[(uint8_t)command.initiator]->HandleCommand(command);
}