Skip to content

Commit

Permalink
fix(DASH): Clear streamMap when period is removed from the manifest (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Sep 13, 2024
1 parent 1434426 commit da71e6d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/dash/dash_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1492,9 +1492,6 @@ shaka.dash.DashParser = class {
*/
cleanStreamMap_() {
const oldPeriodIds = Object.keys(this.indexStreamMap_);
if (oldPeriodIds.length === this.lastManifestUpdatePeriodIds_.length) {
return;
}
const diffPeriodsIDs = oldPeriodIds.filter((pId) => {
return !this.lastManifestUpdatePeriodIds_.includes(pId);
});
Expand Down

0 comments on commit da71e6d

Please sign in to comment.