summaryrefslogtreecommitdiffstats
path: root/src/ConfigParser.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-11-05 14:35:25 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-11-05 14:35:25 +0100
commit5fd4d99aded3677497c6cf5ab31517a5383333cb (patch)
treef7fc1022ff4550c6e7f97d266564cbffc336581f /src/ConfigParser.cpp
parent076b370ddcf6f8d69bd728dd5ae7b18b18a77b23 (diff)
downloaddabmux-5fd4d99aded3677497c6cf5ab31517a5383333cb.tar.gz
dabmux-5fd4d99aded3677497c6cf5ab31517a5383333cb.tar.bz2
dabmux-5fd4d99aded3677497c6cf5ab31517a5383333cb.zip
Add Packet File input
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r--src/ConfigParser.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp
index 3167d49..1ed1bac 100644
--- a/src/ConfigParser.cpp
+++ b/src/ConfigParser.cpp
@@ -1003,6 +1003,13 @@ static void setup_subchannel_from_ptree(DabSubchannel* subchan,
etiLog.level(warn) << "uid " << subchanuid << " of type Dmb uses RAW input";
}
}
+ else if (type == "packet" or type == "enhancedpacket") {
+ subchan->type = subchannel_type_t::Packet;
+ subchan->bitrate = DEFAULT_PACKET_BITRATE;
+
+ bool enhanced = (type == "enhancedpacket");
+ subchan->input = make_shared<Inputs::PacketFile>(enhanced);
+ }
else {
stringstream ss;
ss << "Subchannel with uid " << subchanuid << " has unknown type!";