From 1ec92b35a08873428d6a68391afa5abc8d1dbadc Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 29 Mar 2023 01:21:00 +0200 Subject: [PATCH] Fix HLS input download speed issues --- src/input/input_hls.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input/input_hls.cpp b/src/input/input_hls.cpp index b86339a9..e56003ab 100644 --- a/src/input/input_hls.cpp +++ b/src/input/input_hls.cpp @@ -325,6 +325,7 @@ namespace Mist{ if (!currBuf){return false;} size_t retries = 0; while (segDL && currBuf->size() < offset + 188 + 188){ + size_t preSize = currBuf->size(); segDL.readSome(offset + 188 + 188 - currBuf->size(), *this); if (currBuf->size() < offset + 188 + 188){ if (!segDL){ @@ -340,7 +341,7 @@ namespace Mist{ segDL.seek(currBuf->size()); } } - Util::sleep(50); + if (currBuf->size() <= preSize){Util::sleep(50);} } } if (currBuf->size() < offset + 188 + 188){return false;}