aboutsummaryrefslogtreecommitdiffstats
path: root/src/fig0_8.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-30 10:43:49 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-30 10:43:49 +0100
commit466833a35a402347b7e2180ab265146eb0a3a59d (patch)
tree08e9c71325e8b8774d73cdc49b55206c15254f44 /src/fig0_8.cpp
parentc515439594bf939e3f712856257a5a086b57616a (diff)
downloadetisnoop-466833a35a402347b7e2180ab265146eb0a3a59d.tar.gz
etisnoop-466833a35a402347b7e2180ab265146eb0a3a59d.tar.bz2
etisnoop-466833a35a402347b7e2180ab265146eb0a3a59d.zip
Fix FIB2 component labels
Diffstat (limited to 'src/fig0_8.cpp')
-rw-r--r--src/fig0_8.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/fig0_8.cpp b/src/fig0_8.cpp
index 5060202..8a651ad 100644
--- a/src/fig0_8.cpp
+++ b/src/fig0_8.cpp
@@ -83,6 +83,7 @@ fig_result_t fig0_8(fig0_common_t& fig0, const display_settings_t &disp)
Rfa = (f[i] >> 4) & 0x7;
SCIdS = f[i] & 0x0F;
r.complete |= fig0_8_is_complete(SId, SCIdS);
+
r.msgs.emplace_back("-");
r.msgs.emplace_back(1, strprintf("SId=0x%X", SId));
r.msgs.emplace_back(1, strprintf("Ext flag=%d 8-bit Rfa %s",
@@ -103,6 +104,17 @@ fig_result_t fig0_8(fig0_common_t& fig0, const display_settings_t &disp)
if (MSC_FIC_flag == 0) {
// MSC in stream mode and SubChId identifies the sub-channel
SubChId = f[i] & 0x3F;
+
+ try {
+ auto& srv = fig0.ensemble.get_service(SId);
+ auto& component = srv.get_component_by_subchannel(SubChId);
+ component.scids = SCIdS;
+ }
+ catch (ensemble_database::not_found &e) {
+ r.errors.push_back("Not yet in DB");
+ }
+
+
r.msgs.emplace_back(1, strprintf("MSC/FIC flag=%d MSC, SubChId=0x%X", MSC_FIC_flag, SubChId));
}
else {