Disallow < 1s buffer for live, set default from the start.

This commit is contained in:
Thulinma 2015-09-05 20:40:44 +02:00
parent 0e55b66e7d
commit c096450a8f

View file

@ -39,7 +39,7 @@ namespace Mist {
capa["codecs"][0u][2u].append("*");
isBuffer = true;
singleton = this;
bufferTime = 0;
bufferTime = 50000;
cutTime = 0;
}
@ -540,6 +540,7 @@ namespace Mist {
tmpNum = config->getOption("bufferTime").asInt();
}
}
if (tmpNum < 1000){tmpNum = 1000;}
//if the new value is different, print a message and apply it
if (bufferTime != tmpNum) {
DEBUG_MSG(DLVL_DEVEL, "Setting bufferTime from %u to new value of %lli", bufferTime, tmpNum);