summaryrefslogtreecommitdiffstats
path: root/src/utils.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-01-12 19:41:27 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-01-12 19:41:27 +0100
commit9164c7e5fd57ed4f5d503c96c97125a90c335b00 (patch)
tree55a71e5aa5fdb4af558c1ba98bab6d69eabec4f6 /src/utils.cpp
parentc004b44ad7d0dba8e602875e8a367cd7c4008df1 (diff)
downloaddabmux-9164c7e5fd57ed4f5d503c96c97125a90c335b00.tar.gz
dabmux-9164c7e5fd57ed4f5d503c96c97125a90c335b00.tar.bz2
dabmux-9164c7e5fd57ed4f5d503c96c97125a90c335b00.zip
Define User Application Type in configuration file
Diffstat (limited to 'src/utils.cpp')
-rw-r--r--src/utils.cpp54
1 files changed, 47 insertions, 7 deletions
diff --git a/src/utils.cpp b/src/utils.cpp
index ee447d3..cc89c7b 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -370,15 +370,55 @@ void printComponent(DabComponent* component)
etiLog.log(info, " service component type: 0x%x (%u)", component->type,
component->type);
- etiLog.log(info, " (packet) id: %u", component->packet.id);
- etiLog.log(info, " (packet) address: %u",
- component->packet.address);
+ if (component->packet.appType != 0xFFFF) {
+ etiLog.log(info, " (packet) id: %u", component->packet.id);
+ etiLog.log(info, " (packet) address: %u",
+ component->packet.address);
- etiLog.log(info, " (packet) app type: %u",
- component->packet.appType);
+ etiLog.log(info, " (packet) app type: %u",
+ component->packet.appType);
- etiLog.log(info, " (packet) datagroup: %u",
- component->packet.datagroup);
+ etiLog.log(info, " (packet) datagroup: %u",
+ component->packet.datagroup);
+ }
+ else if (component->audio.uaType != 0xFFFF) {
+ stringstream ss;
+ ss << " (audio) app type: ";
+ switch (component->audio.uaType) {
+ case FIG0_13_APPTYPE_SLIDESHOW:
+ ss << "MOT Slideshow";
+ break;
+ case FIG0_13_APPTYPE_WEBSITE:
+ ss << "MOT Broadcast Website";
+ break;
+ case FIG0_13_APPTYPE_TPEG:
+ ss << "TPEG";
+ break;
+ case FIG0_13_APPTYPE_DGPS:
+ ss << "DGPS";
+ break;
+ case FIG0_13_APPTYPE_TMC:
+ ss << "TMC";
+ break;
+ case FIG0_13_APPTYPE_EPG:
+ ss << "EPG";
+ break;
+ case FIG0_13_APPTYPE_DABJAVA:
+ ss << "DAB Java";
+ break;
+ case FIG0_13_APPTYPE_JOURNALINE:
+ ss << "Journaline";
+ break;
+ default:
+ ss << "Unknown: " << component->audio.uaType;
+ break;
+ }
+
+ etiLog.level(info) << ss.str();
+ }
+ else {
+ etiLog.level(info) << " No app type defined";
+ }
}
void printSubchannels(vector<dabSubchannel*>& subchannels)