diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-05-27 08:22:00 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-05-27 08:22:00 +0200 |
commit | 32345f664ca4ddc5e9fc7faf8028651be8411da0 (patch) | |
tree | ab19e7ad1aa1c4024b3c05870ee1945934bb164d | |
parent | 8b15be51f6087aeb8415d26d1e636337b2fa2284 (diff) | |
download | v4l-utils-32345f664ca4ddc5e9fc7faf8028651be8411da0.tar.gz |
cec-compliance: hardcode audio_out_delay to 1 if not set
If audio_out_delay is not present in the message, then set
the value to 1.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r-- | utils/cec-compliance/cec-test-audio.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/cec-compliance/cec-test-audio.cpp b/utils/cec-compliance/cec-test-audio.cpp index bf7b3920..27c3e014 100644 --- a/utils/cec-compliance/cec-test-audio.cpp +++ b/utils/cec-compliance/cec-test-audio.cpp @@ -44,6 +44,8 @@ static int dal_request_current_latency(struct node *node, unsigned me, unsigned // get it from the actual message. if (msg.len >= 7) audio_out_delay = msg.msg[6]; + else + audio_out_delay = 1; fail_on_test(phys_addr != node->remote[la].phys_addr); info("Video latency: %d (%dms)\n", video_latency, (video_latency - 1) * 2); info("Low latency mode: %d\n", low_latency_mode); |