summaryrefslogtreecommitdiffstats
path: root/src/utils.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-02 15:36:21 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-02 15:36:21 +0200
commitc97b43fc819e1e0e963183579d1b50f26f8c6f7f (patch)
treeb0e1570b07d83be9b1c34addc74d708dfce0e888 /src/utils.cpp
parentc21a6828183cdcc08533a83530156e5758aca534 (diff)
downloaddabmux-c97b43fc819e1e0e963183579d1b50f26f8c6f7f.tar.gz
dabmux-c97b43fc819e1e0e963183579d1b50f26f8c6f7f.tar.bz2
dabmux-c97b43fc819e1e0e963183579d1b50f26f8c6f7f.zip
Regroup linkagesets into subsets of same type
Diffstat (limited to 'src/utils.cpp')
-rw-r--r--src/utils.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/utils.cpp b/src/utils.cpp
index baf15d5..94268da 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -556,15 +556,17 @@ static void printLinking(const shared_ptr<dabEnsemble> ensemble)
{
etiLog.log(info, " Linkage Sets");
for (const auto& linkageset : ensemble->linkagesets) {
+ const auto& lsd = linkageset->data;
+
etiLog.level(info) << " set " << linkageset->get_rc_name();
- etiLog.log(info, " LSN 0x%04x", linkageset->lsn);
- etiLog.level(info) << " active " << (linkageset->active ? "true" : "false");
- etiLog.level(info) << " " << (linkageset->hard ? "hard" : "soft");
- etiLog.level(info) << " international " << (linkageset->international ? "true" : "false");
- etiLog.level(info) << " key service " << linkageset->keyservice;
+ etiLog.log(info, " LSN 0x%04x", lsd.lsn);
+ etiLog.level(info) << " active " << (lsd.active ? "true" : "false");
+ etiLog.level(info) << " " << (lsd.hard ? "hard" : "soft");
+ etiLog.level(info) << " international " << (lsd.international ? "true" : "false");
+ etiLog.level(info) << " key service " << lsd.keyservice;
etiLog.level(info) << " ID list";
- for (const auto& link : linkageset->id_list) {
+ for (const auto& link : lsd.id_list) {
switch (link.type) {
case ServiceLinkType::DAB:
etiLog.level(info) << " type DAB";
@@ -580,7 +582,7 @@ static void printLinking(const shared_ptr<dabEnsemble> ensemble)
break;
}
etiLog.log(info, " id 0x%04x", link.id);
- if (linkageset->international) {
+ if (lsd.international) {
etiLog.log(info, " ecc 0x%04x", link.ecc);
}
}