From f470de09c4215c39387fbe6d85330c90fecea10d Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Sun, 24 May 2015 23:42:35 +0200 Subject: Labels: use spaces instead of NULs for trailing padding The NULs ATM used for trailing label padding are not defined in the EBU Latin based charset we use. As all 16 label bytes must be used, use spaces instead, like real-world broadcasters do. --- src/DabMux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/DabMux.cpp') diff --git a/src/DabMux.cpp b/src/DabMux.cpp index 7f946d5..ecbedc4 100644 --- a/src/DabMux.cpp +++ b/src/DabMux.cpp @@ -1909,7 +1909,7 @@ int main(int argc, char *argv[]) subchannel = getSubchannel(ensemble->subchannels, (*component)->subchId); - if ((*component)->label.text()[0] != 0) { + if (!((*component)->label.long_label().empty())) { if ((*service)->getType(ensemble) == 0) { // Programme FIGtype1_4_programme *fig1_4; fig1_4 = (FIGtype1_4_programme*)&etiFrame[index]; -- cgit v1.2.3