aboutsummaryrefslogtreecommitdiffstats
path: root/src/MuxElements.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-21 16:40:08 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-21 16:40:08 +0100
commitde472d4b7f674cd24c4dafa30ca42bd73665e4f8 (patch)
tree794f35bddbd6c49984c2885a10f76a311ded75ff /src/MuxElements.cpp
parent9b5dad36648022a1d78f4060a30edc0fb8e32001 (diff)
downloaddabmux-de472d4b7f674cd24c4dafa30ca42bd73665e4f8.tar.gz
dabmux-de472d4b7f674cd24c4dafa30ca42bd73665e4f8.tar.bz2
dabmux-de472d4b7f674cd24c4dafa30ca42bd73665e4f8.zip
Let FIGs fail more gently in case of errors
Diffstat (limited to 'src/MuxElements.cpp')
-rw-r--r--src/MuxElements.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/MuxElements.cpp b/src/MuxElements.cpp
index ef04507..e07a49d 100644
--- a/src/MuxElements.cpp
+++ b/src/MuxElements.cpp
@@ -666,6 +666,15 @@ bool dabEnsemble::validate_linkage_sets()
keyserviceuid.c_str(), ls->lsn);
return false;
}
+
+ // need to add key service to num_ids
+ const size_t num_ids = 1 + ls->id_list.size();
+ if (num_ids > 0x0F) {
+ etiLog.log(error,
+ "Too many links for linkage set 0x%04x",
+ ls->lsn);
+ return false;
+ }
}
return true;