diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-07-07 12:02:48 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-07-07 12:02:48 +0200 |
commit | 1d92e548f75b9fa6b5f3322ffa0658e0006c324b (patch) | |
tree | b0f7006d4f9c9a43591f32e2feb8349d7b25b89f /src/fig0_2.cpp | |
parent | 4870d0c148eb49ffeb5482ae55d9cc4c9cc89786 (diff) | |
download | etisnoop-1d92e548f75b9fa6b5f3322ffa0658e0006c324b.tar.gz etisnoop-1d92e548f75b9fa6b5f3322ffa0658e0006c324b.tar.bz2 etisnoop-1d92e548f75b9fa6b5f3322ffa0658e0006c324b.zip |
Add ensemble database, show service label in audio level statistics
Diffstat (limited to 'src/fig0_2.cpp')
-rw-r--r-- | src/fig0_2.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/fig0_2.cpp b/src/fig0_2.cpp index 85de44c..48e9adf 100644 --- a/src/fig0_2.cpp +++ b/src/fig0_2.cpp @@ -101,6 +101,12 @@ fig_result_t fig0_2(fig0_common_t& fig0, const display_settings_t &disp) r.msgs.emplace_back(1, strprintf("CAID=%d", caid)); } + if (fig0.fibcrccorrect) { + auto& service = fig0.ensemble.get_or_create_service(sid); + service.programme_not_data = (fig0.pd() == 0); + } + + k++; for (int i = 0; i < ncomp; i++) { uint8_t scomp[2]; @@ -128,6 +134,13 @@ fig_result_t fig0_2(fig0_common_t& fig0, const display_settings_t &disp) psdesc = "Primary service"; } + if (fig0.fibcrccorrect) { + // TODO is subchid unique, or do we also need to take timd into the key for identifying + // our components? + auto& service = fig0.ensemble.get_service(sid); + auto& component = service.get_or_create_component(subchid); + component.primary = (ps != 0); + } if (timd == 0) { //MSC stream audio @@ -171,6 +184,7 @@ fig_result_t fig0_2(fig0_common_t& fig0, const display_settings_t &disp) r.msgs.emplace_back(2, strprintf("SubChannel ID=%02X", subchid)); r.msgs.emplace_back(2, strprintf("CA=%d", ca)); } + k += 2; } } |