Skip to content

Commit

Permalink
fix: drop fragment when currentLevel is undefined (#6730)
Browse files Browse the repository at this point in the history
* add a warning when currentLevel is undefined on fragment progress
  • Loading branch information
gjanblaszczyk authored Oct 7, 2024
1 parent 65d6b1f commit 09c6747
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/controller/stream-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,10 @@ export default class StreamController
return;
}
const currentLevel = levels[frag.level];
if (!currentLevel) {
this.warn(`Level ${frag.level} not found on progress`);
return;
}
const details = currentLevel.details;
if (!details) {
this.warn(
Expand Down

0 comments on commit 09c6747

Please sign in to comment.