mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 13:53:53 +02:00
Add proper reference count-based source disposal system
This commit is contained in:
@@ -576,6 +576,13 @@ export class HlsDemuxer extends Demuxer {
|
||||
async getMimeType(): Promise<string> {
|
||||
return 'application/vnd.apple.mpegurl';
|
||||
}
|
||||
|
||||
override dispose(): void {
|
||||
for (const segInput of this.segmentedInputs) {
|
||||
segInput.dispose();
|
||||
}
|
||||
this.segmentedInputs.length = 0;
|
||||
}
|
||||
}
|
||||
|
||||
abstract class HlsInputTrackBacking implements InputTrackBacking {
|
||||
|
||||
Reference in New Issue
Block a user