summaryrefslogtreecommitdiffstats
path: root/src/DabMultiplexer.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-03-05 17:32:33 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-03-05 17:32:33 +0100
commit8dad8afa09a3740dd90bd70917ff93a63098e576 (patch)
tree9b7917169e66fe6c43869f79ad4c3d8fbba56cde /src/DabMultiplexer.cpp
parent19431ba192c3b95726c7297c96494ba6397879ef (diff)
downloaddabmux-8dad8afa09a3740dd90bd70917ff93a63098e576.tar.gz
dabmux-8dad8afa09a3740dd90bd70917ff93a63098e576.tar.bz2
dabmux-8dad8afa09a3740dd90bd70917ff93a63098e576.zip
Compile under OSX
Diffstat (limited to 'src/DabMultiplexer.cpp')
-rw-r--r--src/DabMultiplexer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DabMultiplexer.cpp b/src/DabMultiplexer.cpp
index 52bca1b..e60feaa 100644
--- a/src/DabMultiplexer.cpp
+++ b/src/DabMultiplexer.cpp
@@ -215,11 +215,11 @@ void DabMultiplexer::prepare()
*/
gettimeofday(&mnsc_time, NULL);
+#if HAVE_OUTPUT_EDI
if (clock_gettime(CLOCK_REALTIME, &edi_time)) {
throw std::runtime_error("Setting eti_time with clock_gettime failed");
}
-#if HAVE_OUTPUT_EDI
// Try to load offset once
bool tist_enabled = m_pt.get("general.tist", false);
@@ -1751,6 +1751,7 @@ void DabMultiplexer::mux_frame(std::vector<std::shared_ptr<DabOutput> >& outputs
edi_tagDETI.atstf = 1;
edi_tagDETI.utco = 0;
edi_tagDETI.seconds = 0;
+#if HAVE_OUTPUT_EDI
try {
bool tist_enabled = m_pt.get("general.tist", false);
@@ -1763,6 +1764,7 @@ void DabMultiplexer::mux_frame(std::vector<std::shared_ptr<DabOutput> >& outputs
catch (std::runtime_error& e) {
etiLog.level(error) << "Could not get UTC-TAI offset for EDI timestamp";
}
+#endif
/* Coding of the TIST, according to ETS 300 799 Annex C