Skip to content

Commit

Permalink
fix(DASH): Error due to deleted stream (#7723)
Browse files Browse the repository at this point in the history
Fixes #7722
  • Loading branch information
Iragne authored Dec 9, 2024
1 parent 90e47eb commit 0ca6ff7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/dash/dash_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1500,6 +1500,9 @@ shaka.dash.DashParser = class {
let shouldDeleteIndex = true;
for (const contextId of this.indexStreamMap_[pId]) {
const stream = this.streamMap_[contextId];
if (!stream) {
continue;
}
if (stream.segmentIndex && !stream.segmentIndex.isEmpty()) {
shouldDeleteIndex = false;
continue;
Expand Down

0 comments on commit 0ca6ff7

Please sign in to comment.