From 907534bccee046c0499e9f936873c229b247ef95 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 23 Sep 2019 14:44:45 +0200 Subject: Add buffermanagement setting to RC --- src/ConfigParser.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/ConfigParser.cpp') diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index 2fb375b..d45cfef 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -956,7 +956,9 @@ static void setup_subchannel_from_ptree(shared_ptr& subchan, } } else if (proto == "edi") { - subchan->input = make_shared(subchanuid); + auto inedi = make_shared(subchanuid); + rcs.enrol(inedi.get()); + subchan->input = inedi; } else if (proto == "stp") { subchan->input = make_shared(); @@ -1023,10 +1025,10 @@ static void setup_subchannel_from_ptree(shared_ptr& subchan, const string bufferManagement = pt.get("buffer-management", "prebuffering"); if (bufferManagement == "prebuffering") { - subchan->bufferManagement = BufferManagement::Prebuffering; + subchan->input->setBufferManagement(Inputs::BufferManagement::Prebuffering); } else if (bufferManagement == "timestamped") { - subchan->bufferManagement = BufferManagement::Timestamped; + subchan->input->setBufferManagement(Inputs::BufferManagement::Timestamped); } else { throw runtime_error("Subchannel with uid " + subchanuid + " has invalid buffer-management !"); -- cgit v1.2.3