diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-05-25 19:04:57 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-05-25 19:04:57 +0200 |
commit | 0b647385bb6e379c253099b32692f867fe1bd428 (patch) | |
tree | a5355f61bf8a91c7e52f2a1fcb0e50e70bf522df /src/DabMux.cpp | |
parent | f470de09c4215c39387fbe6d85330c90fecea10d (diff) | |
download | dabmux-0b647385bb6e379c253099b32692f867fe1bd428.tar.gz dabmux-0b647385bb6e379c253099b32692f867fe1bd428.tar.bz2 dabmux-0b647385bb6e379c253099b32692f867fe1bd428.zip |
Simplify DAB label handling
The DabLabel object only save the label in the unpadded form,
and handle padding with spaces at the time of usage.
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r-- | src/DabMux.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp index ecbedc4..d83dbce 100644 --- a/src/DabMux.cpp +++ b/src/DabMux.cpp @@ -1661,7 +1661,7 @@ int main(int argc, char *argv[]) fig1_0->EId = htons(ensemble->id); index = index + 4; - memcpy(&etiFrame[index], ensemble->label.text(), 16); + ensemble->label.writeLabel(&etiFrame[index]); index = index + 16; etiFrame[index++] = ensemble->label.flag() >> 8; @@ -1892,7 +1892,7 @@ int main(int argc, char *argv[]) index += 6; figSize += 6; } - memcpy(&etiFrame[index], (*service)->label.text(), 16); + (*service)->label.writeLabel(&etiFrame[index]); index += 16; figSize += 16; etiFrame[index++] = (*service)->label.flag() >> 8; @@ -1943,7 +1943,7 @@ int main(int argc, char *argv[]) index += 7; figSize += 7; } - memcpy(&etiFrame[index], (*component)->label.text(), 16); + (*component)->label.writeLabel(&etiFrame[index]); index += 16; figSize += 16; |