From 8ff89e414770a922e45eee829b672aceb10ea609 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 13 Feb 2019 10:30:59 +0100 Subject: Simplify and use isProgramme where possible --- src/fig/FIG0_13.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/fig/FIG0_13.cpp') diff --git a/src/fig/FIG0_13.cpp b/src/fig/FIG0_13.cpp index 433838e..314c6e1 100644 --- a/src/fig/FIG0_13.cpp +++ b/src/fig/FIG0_13.cpp @@ -89,8 +89,9 @@ FillStatus FIG0_13::fill(uint8_t *buf, size_t max_size) continue; } - if ( m_transmit_programme && - ((*subchannel)->type == subchannel_type_t::DABPlusAudio || (*subchannel)->type == subchannel_type_t::DABAudio) && + const auto type = (*subchannel)->type; + if ( m_transmit_programme and + (type == subchannel_type_t::DABPlusAudio or type == subchannel_type_t::DABAudio) and (*componentFIG0_13)->audio.uaType != 0xffff) { const int required_size = 3+4+11; -- cgit v1.2.3