diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-02-13 10:30:59 +0100 |
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-02-13 10:30:59 +0100 |
| commit | 8ff89e414770a922e45eee829b672aceb10ea609 (patch) | |
| tree | accdab3630119096ce4f6361942a49152bd564b3 /src/fig/FIG0_13.cpp | |
| parent | fb6ab762301d5da6b0eb3293d19cf545c4caf6ad (diff) | |
| download | dabmux-8ff89e414770a922e45eee829b672aceb10ea609.tar.gz dabmux-8ff89e414770a922e45eee829b672aceb10ea609.tar.bz2 dabmux-8ff89e414770a922e45eee829b672aceb10ea609.zip | |
Simplify and use isProgramme where possible
Diffstat (limited to 'src/fig/FIG0_13.cpp')
| -rw-r--r-- | src/fig/FIG0_13.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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; |
