summaryrefslogtreecommitdiffstats
path: root/src/ConfigParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r--src/ConfigParser.cpp11
1 files changed, 11 insertions, 0 deletions
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<DabSubchannel>& 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;