aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-compliance
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-01-23 16:27:20 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-01-23 16:27:20 +0100
commit4a5e271ec3c4f382bee0f1a6c39b72137922222a (patch)
tree16561a6e34f420c25c0f2f349b0b69e08b5942fc /utils/cec-compliance
parente52638d254662061ac000b480956509fc0966495 (diff)
cec-compliance: add 3 sec delay after Inactive Source
It may take a bit of time for the Inactive Source command to take effect, so add an extra delay here. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/cec-compliance')
-rw-r--r--utils/cec-compliance/cec-test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/cec-compliance/cec-test.cpp b/utils/cec-compliance/cec-test.cpp
index 40c35860..bbd13989 100644
--- a/utils/cec-compliance/cec-test.cpp
+++ b/utils/cec-compliance/cec-test.cpp
@@ -440,6 +440,9 @@ static int routing_control_inactive_source(struct node *node, unsigned me, unsig
return NOTSUPPORTED;
if (refused(&msg))
return REFUSED;
+ // It may take a bit of time for the Inactive Source message to take
+ // effect, so sleep a bit.
+ sleep(3);
fail_on_test(interactive && !question("Did the TV switch away from or stop showing this source?"));
if (interactive)

Privacy Policy