diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-08-13 22:11:28 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-08-13 22:11:28 +0200 |
commit | ebe8447f4cee32e2a096438ca0b458036f646b28 (patch) | |
tree | 33e7367d5652bef9951caae01a80d6231ae4d68c /src | |
parent | c5b84286e25183a6744ff520c60dcb592150d837 (diff) | |
download | dabmux-ebe8447f4cee32e2a096438ca0b458036f646b28.tar.gz dabmux-ebe8447f4cee32e2a096438ca0b458036f646b28.tar.bz2 dabmux-ebe8447f4cee32e2a096438ca0b458036f646b28.zip |
Correctly set initialised flags for all FIGs
Diffstat (limited to 'src')
-rw-r--r-- | src/fig/FIG0.cpp | 5 | ||||
-rw-r--r-- | src/fig/FIG1.cpp | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/fig/FIG0.cpp b/src/fig/FIG0.cpp index 13b21f7..b424fe3 100644 --- a/src/fig/FIG0.cpp +++ b/src/fig/FIG0.cpp @@ -78,6 +78,7 @@ FillStatus FIG0_1::fill(uint8_t *buf, size_t max_size) if (not m_initialised) { subchannelFIG0_1 = m_rti->ensemble->subchannels.end(); + m_initialised = true; } if (max_size < 6) { @@ -181,6 +182,7 @@ FillStatus FIG0_2::fill(uint8_t *buf, size_t max_size) if (not m_initialised) { serviceFIG0_2 = m_rti->ensemble->services.end(); + m_initialised = true; } auto ensemble = m_rti->ensemble; @@ -431,6 +433,7 @@ FillStatus FIG0_8::fill(uint8_t *buf, size_t max_size) if (not m_initialised) { componentFIG0_8 = m_rti->ensemble->components.end(); + m_initialised = true; } FIGtype0* fig0 = NULL; @@ -713,6 +716,7 @@ FillStatus FIG0_13::fill(uint8_t *buf, size_t max_size) if (not m_initialised) { componentFIG0_13 = m_rti->ensemble->components.end(); + m_initialised = true; } FIGtype0* fig0 = NULL; @@ -845,6 +849,7 @@ FillStatus FIG0_17::fill(uint8_t *buf, size_t max_size) if (not m_initialised) { serviceFIG0_17 = m_rti->ensemble->services.end(); + m_initialised = true; } auto ensemble = m_rti->ensemble; diff --git a/src/fig/FIG1.cpp b/src/fig/FIG1.cpp index 2da9130..160c3b9 100644 --- a/src/fig/FIG1.cpp +++ b/src/fig/FIG1.cpp @@ -77,6 +77,7 @@ FillStatus FIG1_1::fill(uint8_t *buf, size_t max_size) if (not m_initialised) { service = m_rti->ensemble->services.end(); + m_initialised = true; } auto ensemble = m_rti->ensemble; @@ -133,6 +134,7 @@ FillStatus FIG1_4::fill(uint8_t *buf, size_t max_size) if (not m_initialised) { component = m_rti->ensemble->components.end(); + m_initialised = true; } auto ensemble = m_rti->ensemble; @@ -219,6 +221,7 @@ FillStatus FIG1_5::fill(uint8_t *buf, size_t max_size) if (not m_initialised) { service = m_rti->ensemble->services.end(); + m_initialised = true; } auto ensemble = m_rti->ensemble; |