diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-09-23 15:32:45 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-09-23 15:32:45 +0200 |
commit | d7dfb9bf8b404a434c8b867dcba43ec3efa28f3c (patch) | |
tree | e9a591ed473d09f9992b0fecf751a48c51a565e9 /src/ConfigParser.cpp | |
parent | 907534bccee046c0499e9f936873c229b247ef95 (diff) | |
download | dabmux-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.cpp | 5 |
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; } |