Skip to content

Commit

Permalink
Fix first fragment ejection tracking (video-dev#5480)
Browse files Browse the repository at this point in the history
  • Loading branch information
robwalch authored May 11, 2023
1 parent 8befacd commit 093a41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/fragment-tracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class FragmentTracker implements ComponentAPI {
}
// Check if any flagged fragments have been unloaded
// excluding anything newer than appendedPartSn
const appendedPartSn = (appendedPart?.fragment.sn || 0) as number;
const appendedPartSn = (appendedPart?.fragment.sn || -1) as number;
Object.keys(this.fragments).forEach((key) => {
const fragmentEntity = this.fragments[key];
if (!fragmentEntity) {
Expand Down

0 comments on commit 093a41c

Please sign in to comment.