From 93cb9dc6d1492ac2ed58c24a016b579813177a13 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 3 Jul 2015 08:12:29 +0200 Subject: Add EDI option to ./configure --- src/DabMultiplexer.cpp | 8 ++++---- src/DabMux.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/DabMultiplexer.cpp b/src/DabMultiplexer.cpp index 5c41d99..71a8b4b 100644 --- a/src/DabMultiplexer.cpp +++ b/src/DabMultiplexer.cpp @@ -181,7 +181,7 @@ void DabMultiplexer::prepare() */ gettimeofday(&mnsc_time, NULL); -#if ENABLE_EDI +#if HAVE_OUTPUT_EDI // Defaults for edi edi_conf.enabled = db.get_numeric("output.edi.enabled", 0) == 1; if (edi_conf.enabled) { @@ -191,7 +191,7 @@ void DabMultiplexer::prepare() edi_conf.dump = db.get_numeric("output.edi.dump") == 1; edi_conf.enable_pft = db.get_numeric("output.edi.enable_pft") == 1; } -#endif // ENABLE_EDI +#endif // HAVE_OUTPUT_EDI } @@ -1708,7 +1708,7 @@ void DabMultiplexer::mux_frame(std::vector >& outpu dumpBytes(dumpData, sizeSubChannel, stderr); #endif // DUMP_BRIDGE -#if ENABLE_EDI +#if HAVE_OUTPUT_EDI /********************************************************************** *********** Finalise and send EDI ******************************** **********************************************************************/ @@ -1777,7 +1777,7 @@ void DabMultiplexer::mux_frame(std::vector >& outpu std::copy(edi_afpacket.begin(), edi_afpacket.end(), debug_iterator); } } -#endif // ENABLE_EDI +#endif // HAVE_OUTPUT_EDI if (currentFrame % 100 == 0) { etiLog.log(info, "ETI frame number %i Time: %d, no TIST\n", diff --git a/src/DabMux.cpp b/src/DabMux.cpp index 560cf65..a8f674b 100644 --- a/src/DabMux.cpp +++ b/src/DabMux.cpp @@ -316,7 +316,7 @@ int main(int argc, char *argv[]) } if (outputuid == "edi") { -#if ENABLE_EDI +#if HAVE_OUTPUT_EDI ptree pt_edi = pt_outputs.get_child("edi"); edi->enabled = true; @@ -417,7 +417,7 @@ int main(int argc, char *argv[]) etiLog.log(info, "--- Output list ---"); printOutputs(outputs); -#if ENABLE_EDI +#if HAVE_OUTPUT_EDI if (edi_conf.enabled) { etiLog.level(warn) << "EXPERIMENTAL EDI OUTPUT ENABLED!"; etiLog.level(info) << "edi to " << edi_conf.dest_addr << ":" << edi_conf.dest_port; -- cgit v1.2.3