From c096450a8f836b648d0dba7ed506faae8bf8ff6d Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sat, 5 Sep 2015 20:40:44 +0200 Subject: [PATCH] Disallow < 1s buffer for live, set default from the start. --- src/input/input_buffer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input/input_buffer.cpp b/src/input/input_buffer.cpp index eb67d220..307b5a78 100644 --- a/src/input/input_buffer.cpp +++ b/src/input/input_buffer.cpp @@ -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);