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 and joeyparrish committed Dec 12, 2024
1 parent aa2fbe0 commit 70e926b
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 @@ -1505,6 +1505,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 70e926b

Please sign in to comment.