Add proper reference count-based source disposal system

This commit is contained in:
Vanilagy
2026-03-12 21:29:01 +01:00
parent e8df451bf5
commit c43ca025d9
7 changed files with 144 additions and 48 deletions
+7
View File
@@ -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 {