diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-06-06 18:03:14 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-06-06 18:03:14 +0200 |
commit | c714196bc8e2b3d4ecead22855096753b1b46e40 (patch) | |
tree | 7d5bcbdcd9d7780329c838e0e15da67824984827 /src/DabMux.cpp | |
parent | c5d91bc88c264366d1e9062b23557d92e61b2298 (diff) | |
download | dabmux-c714196bc8e2b3d4ecead22855096753b1b46e40.tar.gz dabmux-c714196bc8e2b3d4ecead22855096753b1b46e40.tar.bz2 dabmux-c714196bc8e2b3d4ecead22855096753b1b46e40.zip |
Fix several EDI bugs
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r-- | src/DabMux.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp index e2c161a..eb0ec99 100644 --- a/src/DabMux.cpp +++ b/src/DabMux.cpp @@ -657,7 +657,9 @@ int main(int argc, char *argv[]) #if EDI_DEBUG etiLog.log(info, "Setup EDI debug"); - //std::ofstream edi_debug_file("./edi.debug"); +# if EDI_DUMP + std::ofstream edi_debug_file("./edi.debug"); +# endif UdpSocket edi_output(13000); etiLog.log(info, "EDI debug set up"); #endif @@ -862,7 +864,7 @@ int main(int argc, char *argv[]) // (depending on mode) index = ((fc->NST) + 2 + 1) * 4; edi_tagDETI.fic_data = &etiFrame[index]; - edi_tagDETI.fic_length = FICL; + edi_tagDETI.fic_length = FICL * 4; // FIC Insertion FIGtype0* fig0; @@ -2048,8 +2050,10 @@ int main(int argc, char *argv[]) edi_output.send(udppacket); # endif - //std::ostream_iterator<uint8_t> debug_iterator(edi_debug_file); - //std::copy(edi_afpacket.begin(), edi_afpacket.end(), debug_iterator); +# if EDI_DUMP + std::ostream_iterator<uint8_t> debug_iterator(edi_debug_file); + std::copy(edi_afpacket.begin(), edi_afpacket.end(), debug_iterator); +# endif #endif #if _DEBUG |