summaryrefslogtreecommitdiffstats
path: root/src/ConfigParser.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-09-23 15:32:45 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-09-23 15:32:45 +0200
commitd7dfb9bf8b404a434c8b867dcba43ec3efa28f3c (patch)
treee9a591ed473d09f9992b0fecf751a48c51a565e9 /src/ConfigParser.cpp
parent907534bccee046c0499e9f936873c229b247ef95 (diff)
downloaddabmux-d7dfb9bf8b404a434c8b867dcba43ec3efa28f3c.tar.gz
dabmux-d7dfb9bf8b404a434c8b867dcba43ec3efa28f3c.tar.bz2
dabmux-d7dfb9bf8b404a434c8b867dcba43ec3efa28f3c.zip
Make EDI input buffer configurable
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r--src/ConfigParser.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp
index d45cfef..063e4ec 100644
--- a/src/ConfigParser.cpp
+++ b/src/ConfigParser.cpp
@@ -956,7 +956,10 @@ static void setup_subchannel_from_ptree(shared_ptr<DabSubchannel>& subchan,
}
}
else if (proto == "edi") {
- auto inedi = make_shared<Inputs::Edi>(subchanuid);
+ Inputs::dab_input_edi_config_t config;
+ config.buffer_size = pt.get("buffer", config.buffer_size);
+ config.prebuffering = pt.get("prebuffering", config.prebuffering);
+ auto inedi = make_shared<Inputs::Edi>(subchanuid, config);
rcs.enrol(inedi.get());
subchan->input = inedi;
}