summaryrefslogtreecommitdiffstats
path: root/src/DabMux.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r--src/DabMux.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index 4373265..f6a69bb 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -348,6 +348,9 @@ int main(int argc, char *argv[])
auto dest = make_shared<edi::tcp_server_t>();
dest->listen_port = pt_edi_dest.second.get<unsigned int>("listenport");
dest->max_frames_queued = pt_edi_dest.second.get<size_t>("max_frames_queued", 500);
+ double preroll = pt_edi_dest.second.get<double>("preroll-burst", 0.0);
+ dest->tcp_server_preroll_buffers = ceil(preroll / 24e-3);
+
edi_conf.destinations.push_back(dest);
}
else {
@@ -355,11 +358,6 @@ int main(int argc, char *argv[])
}
}
- const auto tist_offset = pt.get<int>("general.tist_offset", 0);
- // By keeping 1.5 x tist_offset worth of EDI in the pre-roll buffer, we ensure that a new client can
- // immediately send out frames according to their timestamp.
- edi_conf.tcp_server_preroll_buffers = ceil(1.5 * (tist_offset / 24e-3));
-
edi_conf.dump = pt_edi.get<bool>("dump", false);
edi_conf.enable_pft = pt_edi.get<bool>("enable_pft", false);
edi_conf.verbose = pt_edi.get<bool>("verbose", false);