Skip to content

Commit

Permalink
fix(HLS): Fix clear init segment mapping (#6000)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Jan 8, 2024
1 parent 2fa803e commit b24a421
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/hls/hls_parser.js
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b24a421

Please sign in to comment.