summaryrefslogtreecommitdiffstats
path: root/src/fig/FIG0_6.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-03 21:29:29 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-03 21:29:29 +0200
commit3342f01f9a0e6f1effc7a698208a072d4a120ff8 (patch)
tree4d9d84a370ba96a629a661548bb5d8a7e20b5679 /src/fig/FIG0_6.cpp
parentdaa2a0a54bd4dc6ea8cef43a5c1d0271cbcc71e7 (diff)
downloaddabmux-3342f01f9a0e6f1effc7a698208a072d4a120ff8.tar.gz
dabmux-3342f01f9a0e6f1effc7a698208a072d4a120ff8.tar.bz2
dabmux-3342f01f9a0e6f1effc7a698208a072d4a120ff8.zip
Fix byte order in FIG0/6 structures
Diffstat (limited to 'src/fig/FIG0_6.cpp')
-rw-r--r--src/fig/FIG0_6.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fig/FIG0_6.cpp b/src/fig/FIG0_6.cpp
index 20fe78b..7c09078 100644
--- a/src/fig/FIG0_6.cpp
+++ b/src/fig/FIG0_6.cpp
@@ -87,7 +87,7 @@ FillStatus FIG0_6::fill(uint8_t *buf, size_t max_size)
fig0_6->LA = linkageSetFIG0_6->active;
fig0_6->SH = linkageSetFIG0_6->hard;
fig0_6->ILS = ILS;
- fig0_6->LSN = linkageSetFIG0_6->lsn;
+ fig0_6->setLSN(linkageSetFIG0_6->lsn);
fig0->Length += sizeof(struct FIGtype0_6);
buf += sizeof(struct FIGtype0_6);
@@ -125,7 +125,6 @@ FillStatus FIG0_6::fill(uint8_t *buf, size_t max_size)
buf += headersize;
remaining -= headersize;
- // TODO insert key service first
const std::string keyserviceuid = linkageSetFIG0_6->keyservice;
const auto& keyservice = std::find_if(
ensemble->services.begin(),
@@ -208,6 +207,8 @@ void FIG0_6::update()
{
linkageSubsets.clear();
+ // TODO check if AMSS and DRM have to be put into a single subset
+
for (const auto& linkageset : m_rti->ensemble->linkagesets) {
const auto lsn = linkageset->data.lsn;