From 2b154f15ef800e64d6c37e6d5e7acdf66c84cef9 Mon Sep 17 00:00:00 2001 From: Mehmet Altundag Date: Tue, 26 Sep 2023 10:18:53 +0200 Subject: [PATCH] Fix blockedsource boundary bug --- src/source/blockedsource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source/blockedsource.js b/src/source/blockedsource.js index 5630efb2..797d1ecb 100644 --- a/src/source/blockedsource.js +++ b/src/source/blockedsource.js @@ -93,7 +93,7 @@ export class BlockedSource extends BaseSource { const firstBlockOffset = Math.floor(offset / this.blockSize) * this.blockSize; - for (let current = firstBlockOffset; current < top; current += this.blockSize) { + for (let current = firstBlockOffset; current <= top; current += this.blockSize) { const blockId = Math.floor(current / this.blockSize); if (!this.blockCache.has(blockId) && !this.blockRequests.has(blockId)) { this.blockIdsToFetch.add(blockId);