aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-compliance
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-09-14 11:06:55 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2018-09-14 11:06:55 +0200
commit23a83f637f3c8777e798ab27b420333574330657 (patch)
tree4f40f7fde1820660991c06d53b7b94ddbf9e2c97 /utils/cec-compliance
parentd62f02f96f8d509566c24bcaadeee35d4a018e3b (diff)
cec-compliance: fix set_osd_string test
Even though cec-follower implemented SET_OSD_STRING correctly, cec-compliance would still give this warning: warn: cec-test.cpp(332): The device is in an unsuitable state or cannot display the complete message. This was due to an incorrect 'else' statement which should have checked if the received message was a Feature Abort. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/cec-compliance')
-rw-r--r--utils/cec-compliance/cec-test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/cec-compliance/cec-test.cpp b/utils/cec-compliance/cec-test.cpp
index 501f9143..0744ba71 100644
--- a/utils/cec-compliance/cec-test.cpp
+++ b/utils/cec-compliance/cec-test.cpp
@@ -328,7 +328,7 @@ static int osd_string_set_default(struct node *node, unsigned me, unsigned la, b
return NOTSUPPORTED;
else if (refused(&msg))
return REFUSED;
- else {
+ else if (cec_msg_status_is_abort(&msg)) {
warn("The device is in an unsuitable state or cannot display the complete message.\n");
unsuitable = true;
}

Privacy Policy