X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=config.cpp;h=aa0f670a4b78a0607db4bf8af1d1232a14f21426;hp=cf32c24ae81edb73187ccf883ca61f02648828b4;hb=6889a665614e926437484a556124a5ff60363568;hpb=07569f8e011cd9b064c64bef1ce56f77bf7ddf53 diff --git a/config.cpp b/config.cpp index cf32c24..aa0f670 100644 --- a/config.cpp +++ b/config.cpp @@ -19,7 +19,7 @@ using namespace std; -#define DEFAULT_BACKLOG_SIZE 1048576 +#define DEFAULT_BACKLOG_SIZE 10485760 struct ConfigLine { string keyword; @@ -235,6 +235,13 @@ bool parse_stream(const ConfigLine &line, Config *config) stream.backlog_size = atoi(backlog_it->second.c_str()); } + map::const_iterator prebuffer_it = line.parameters.find("force_prebuffer"); + if (prebuffer_it == line.parameters.end()) { + stream.prebuffering_bytes = 0; + } else { + stream.prebuffering_bytes = atoi(prebuffer_it->second.c_str()); + } + // Parse encoding. map::const_iterator encoding_parm_it = line.parameters.find("encoding"); if (encoding_parm_it == line.parameters.end() ||