diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-02-14 13:07:17 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-02-14 13:07:17 +0100 |
commit | 4249e4a53950457394395555cd7dcdd6287b499b (patch) | |
tree | f24fb7336bc8897e62892da005d0815bef998f31 /src/utils.cpp | |
parent | 6b9857cb1b2ab6b58e6e42df4b0cce54448b10a0 (diff) | |
download | dabmux-4249e4a53950457394395555cd7dcdd6287b499b.tar.gz dabmux-4249e4a53950457394395555cd7dcdd6287b499b.tar.bz2 dabmux-4249e4a53950457394395555cd7dcdd6287b499b.zip |
DabService labels can now be changed through the remote control
Diffstat (limited to 'src/utils.cpp')
-rw-r--r-- | src/utils.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/utils.cpp b/src/utils.cpp index b837009..157c3a7 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -296,9 +296,9 @@ void printOutputs(vector<dabOutput*>& outputs) } } -void printServices(vector<dabService*>& services) +void printServices(vector<DabService*>& services) { - vector<dabService*>::const_iterator current; + vector<DabService*>::const_iterator current; int index = 0; for (current = services.begin(); current != services.end(); ++current) { @@ -307,16 +307,10 @@ void printServices(vector<dabService*>& services) label[16] = 0; etiLog.log(info, "Service %i\n", index); - etiLog.log(info, " label: %s\n", label); - etiLog.log(info, " short label: "); - { - LogLine line = etiLog.level(info); - for (int i = 0; i < 32; ++i) { - if ((*current)->label.flag() & 0x8000 >> i) { - line << label[i]; - } - } - } + etiLog.log(info, " label: %s\n", + (*current)->label.text()); + etiLog.log(info, " short label: %s\n", + (*current)->label.short_label().c_str()); etiLog.log(info, " (0x%x)\n", (*current)->label.flag()); etiLog.log(info, " id: 0x%lx (%lu)\n", (*current)->id, (*current)->id); |