Skip to content

Commit 61d5298

Browse files
committed
fix(HLS): Fix clear init segment mapping (#6000)
1 parent b8cd997 commit 61d5298

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/hls/hls_parser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ shaka.hls.HlsParser = class {
295295
this.groupIdToStreamInfosMap_.clear();
296296
this.groupIdToCodecsMap_.clear();
297297
this.globalVariables_.clear();
298+
this.mapTagToInitSegmentRefMap_.clear();
298299

299300
if (this.contentSteeringManager_) {
300301
this.contentSteeringManager_.destroy();
@@ -905,6 +906,7 @@ shaka.hls.HlsParser = class {
905906
let initData = null;
906907
const initSegmentRef = this.getInitSegmentReference_(
907908
playlist, middleSegment.tags, getUris);
909+
this.mapTagToInitSegmentRefMap_.clear();
908910
if (initSegmentRef) {
909911
const initSegmentRequest = shaka.net.NetworkingEngine.makeRequest(
910912
initSegmentRef.getUris(), this.config_.retryParameters);

0 commit comments

Comments
 (0)