From 44b50125cef0aecfbad01058f771924bf1e16512 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 2 Oct 2021 12:05:15 +0200 Subject: Initialise snoop subchannel index --- src/etianalyse.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/etianalyse.cpp') diff --git a/src/etianalyse.cpp b/src/etianalyse.cpp index fa3f297..6e14343 100644 --- a/src/etianalyse.cpp +++ b/src/etianalyse.cpp @@ -577,8 +577,7 @@ void ETI_Analyser::eti_analyse() for (const auto& service : ensemble.services) { for (const auto& component : service.components) { - if (component.subchId == snoop.second.subchid and - component.primary) { + if (component.subchId == snoop.first and component.primary) { corresponding_service_found = true; fprintf(stat_fd, " - service_id: 0x%x\n", service.id); fprintf(stat_fd, " subchannel_id: 0x%x\n", component.subchId); -- cgit v1.2.3