Skip to content

Commit

Permalink
Merge pull request #1560 from canalplus/fix/avsb-operation-leak
Browse files Browse the repository at this point in the history
Fix `SourceBuffer.prototype.remove` error handling
  • Loading branch information
peaBerberian authored Oct 2, 2024
2 parents 1319cdd + 31463cc commit 4a940b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mse/main_media_source_interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,9 @@ export class MainSourceBufferInterface implements ISourceBufferInterface {
false,
);
nextElem.reject(error);
this._currentOperations.forEach((op) => {
op.reject(error);
});
this._currentOperations = [];
}
}
Expand Down

0 comments on commit 4a940b0

Please sign in to comment.