From b515eac15fee1e2ba8b81252b5dcc5490d45fb88 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 30 Mar 2023 13:58:12 +0200 Subject: [PATCH] Speed tweaks --- src/input/input_hls.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/input/input_hls.cpp b/src/input/input_hls.cpp index 873485d3..80eb1e24 100644 --- a/src/input/input_hls.cpp +++ b/src/input/input_hls.cpp @@ -341,7 +341,9 @@ namespace Mist{ segDL.seek(currBuf->size()); } } - if (currBuf->size() <= preSize){Util::sleep(50);} + if (currBuf->size() <= preSize){ + Util::sleep(5); + } } } if (currBuf->size() < offset + 188 + 188){return false;} @@ -1608,14 +1610,14 @@ namespace Mist{ uint32_t maxWait = 0; unsigned int lastCount = 9999; - while (plsTotalCount != plsInitCount && ++maxWait < 50){ + while (plsTotalCount != plsInitCount && ++maxWait < 1000){ if (plsInitCount != lastCount){ lastCount = plsInitCount; INFO_MSG("Waiting for variant playlists to load... %u/%u", lastCount, plsTotalCount); } - Util::sleep(1000); + Util::sleep(50); } - if (maxWait >= 50){ + if (maxWait >= 1000){ WARN_MSG("Timeout waiting for variant playlists (%u/%u)", plsInitCount, plsTotalCount); } plsInitCount = 0;