aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-22 01:27:09 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-22 01:27:15 +0100
commit13f2ea125bf1a8eab649fec7a657b3ec98b61e63 (patch)
treec26d9623c08506f70e7c321761fa857cf3623f87 /src/DabMod.cpp
parenta44ccd8d6419ae1abed753a48125cc57d9d9bb6d (diff)
downloaddabmod-13f2ea125bf1a8eab649fec7a657b3ec98b61e63.tar.gz
dabmod-13f2ea125bf1a8eab649fec7a657b3ec98b61e63.tar.bz2
dabmod-13f2ea125bf1a8eab649fec7a657b3ec98b61e63.zip
Make EDI input optional
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r--src/DabMod.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp
index d28e755..78393bd 100644
--- a/src/DabMod.cpp
+++ b/src/DabMod.cpp
@@ -3,7 +3,7 @@
Her Majesty the Queen in Right of Canada (Communications Research
Center Canada)
- Copyright (C) 2017
+ Copyright (C) 2018
Matthias P. Braendli, matthias.braendli@mpb.li
http://opendigitalradio.org
@@ -279,6 +279,7 @@ int launch_modulator(int argc, char* argv[])
set_thread_name("modulator");
if (mod_settings.inputTransport == "edi") {
+#ifdef HAVE_EDI
EdiReader ediReader(mod_settings.tist_offset_s);
EdiDecoder::ETIDecoder ediInput(ediReader, false);
if (mod_settings.edi_max_delay_ms > 0.0f) {
@@ -323,6 +324,10 @@ int launch_modulator(int argc, char* argv[])
rcs.check_faults();
}
}
+#else
+ throw std::runtime_error("Unable to open input: "
+ "EDI input transport selected, but not compiled in!");
+#endif // HAVE_EDI
}
else {
shared_ptr<InputReader> inputReader;