summaryrefslogtreecommitdiffstats
path: root/src/ConfigParser.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-09-23 16:50:31 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-09-23 16:50:31 +0200
commit27c6111ebf2e94af6e93c35879efd310861bb08e (patch)
tree0961e4f36553f056c0bbf825dece27444d166e79 /src/ConfigParser.cpp
parent234702919ee1129e40fec356db3f6a1c7c5db70a (diff)
downloaddabmux-27c6111ebf2e94af6e93c35879efd310861bb08e.tar.gz
dabmux-27c6111ebf2e94af6e93c35879efd310861bb08e.tar.bz2
dabmux-27c6111ebf2e94af6e93c35879efd310861bb08e.zip
Add warning about primary component labels
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r--src/ConfigParser.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp
index 733b5df..6a359b7 100644
--- a/src/ConfigParser.cpp
+++ b/src/ConfigParser.cpp
@@ -507,6 +507,12 @@ void parse_ptree(boost::property_tree::ptree& pt,
abort();
}
+ if (component->SCIdS == 0 and not component->label.long_label().empty()) {
+ etiLog.level(warn) << "Primary component " << component->uid <<
+ " has label set. Since V2.1.1 of the specification, only secondary"
+ " components are allowed to have labels.";
+ }
+
if (figType != -1) {
if (figType >= (1<<12)) {
stringstream ss;