From b24a4215b1b65168cb406847a9889c6b5cb5cb6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Tue, 12 Dec 2023 02:09:24 +0100 Subject: [PATCH] fix(HLS): Fix clear init segment mapping (#6000) --- lib/hls/hls_parser.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/hls/hls_parser.js b/lib/hls/hls_parser.js index b80799778e..6c9442547e 100644 --- a/lib/hls/hls_parser.js +++ b/lib/hls/hls_parser.js @@ -295,6 +295,7 @@ shaka.hls.HlsParser = class { this.groupIdToStreamInfosMap_.clear(); this.groupIdToCodecsMap_.clear(); this.globalVariables_.clear(); + this.mapTagToInitSegmentRefMap_.clear(); if (this.contentSteeringManager_) { this.contentSteeringManager_.destroy(); @@ -905,6 +906,7 @@ shaka.hls.HlsParser = class { let initData = null; const initSegmentRef = this.getInitSegmentReference_( playlist, middleSegment.tags, getUris); + this.mapTagToInitSegmentRefMap_.clear(); if (initSegmentRef) { const initSegmentRequest = shaka.net.NetworkingEngine.makeRequest( initSegmentRef.getUris(), this.config_.retryParameters);