From ebe8447f4cee32e2a096438ca0b458036f646b28 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 13 Aug 2015 22:11:28 +0200 Subject: Correctly set initialised flags for all FIGs --- src/fig/FIG0.cpp | 5 +++++ src/fig/FIG1.cpp | 3 +++ 2 files changed, 8 insertions(+) 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; -- cgit v1.2.3