From c0788a90a0d6e047488980a2ad5bb4f9cf108682 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 5 Sep 2019 11:15:58 +0200 Subject: Take BufferManagement setting into account --- src/ConfigParser.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/ConfigParser.cpp') diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index 3142bb3..b1e785a 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -1021,6 +1021,17 @@ static void setup_subchannel_from_ptree(shared_ptr& subchan, } } + const string bufferManagement = pt.get("buffer-management", "prebuffering"); + if (bufferManagement == "prebuffering") { + subchan->bufferManagement = BufferManagement::Prebuffering; + } + else if (bufferManagement == "timestamped") { + subchan->bufferManagement = BufferManagement::Timestamped; + } + else { + throw runtime_error("Subchannel with uid " + subchanuid + " has invalid buffer-management !"); + } + subchan->startAddress = 0; dabProtection* protection = &subchan->protection; -- cgit v1.2.3