aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ConfigParser.cpp6
-rw-r--r--src/fig/FIG1.cpp3
2 files changed, 9 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;
diff --git a/src/fig/FIG1.cpp b/src/fig/FIG1.cpp
index 86c717e..8f41239 100644
--- a/src/fig/FIG1.cpp
+++ b/src/fig/FIG1.cpp
@@ -145,6 +145,9 @@ FillStatus FIG1_4::fill(uint8_t *buf, size_t max_size)
auto service = getService(*component, ensemble->services);
+ /* We check in the config parser if the primary component has
+ * a label, which is forbidden since V2.1.1 */
+
if (not (*component)->label.long_label().empty() ) {
if ((*service)->getType(ensemble) == subchannel_type_t::Audio) {