aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-follower/cec-processing.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-11-28 14:56:15 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-11-28 14:56:15 +0100
commit8021c9d3aac0f4446ef5bedd2c53f0c2afbaa752 (patch)
tree8e5a687c311667703bd2ed6dba91af964ebb8fe4 /utils/cec-follower/cec-processing.cpp
parent8ae5d055c9ad60c65ef6813f925ad3719a92ccb5 (diff)
cec-follower: add --ignore option
It can be useful to ignore specific messages in the follower to better emulate a specific application. Add the --ignore option (similar to the --ignore option in cec-ctl). Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/cec-follower/cec-processing.cpp')
-rw-r--r--utils/cec-follower/cec-processing.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/cec-follower/cec-processing.cpp b/utils/cec-follower/cec-processing.cpp
index bc714764..74cf3f2a 100644
--- a/utils/cec-follower/cec-processing.cpp
+++ b/utils/cec-follower/cec-processing.cpp
@@ -940,6 +940,11 @@ void testProcessing(struct node *node, bool wallclock)
__u8 to = cec_msg_destination(&msg);
__u8 opcode = cec_msg_opcode(&msg);
+ if (node->ignore_la[from])
+ continue;
+ if (node->ignore_opcode[msg.msg[1]] & (1 << from))
+ continue;
+
if (from != CEC_LOG_ADDR_UNREGISTERED &&
la_info[from].feature_aborted[opcode].ts &&
ts_to_ms(get_ts() - la_info[from].feature_aborted[opcode].ts) < 200) {

Privacy Policy