Add @mediabunny/dts extension package

This commit is contained in:
Vanilagy
2026-08-15 17:50:47 +02:00
parent 914907b5db
commit e8162f483f
40 changed files with 2142 additions and 31 deletions
+11 -3
View File
@@ -1297,8 +1297,13 @@ class VideoDecoderWrapper extends DecoderWrapper<VideoSample> {
void this.customDecoderCallSerializer.call(() => this.customDecoder!.close());
} else {
assert(this.decoder);
this.decoder.close();
this.alphaDecoder?.close();
if (this.decoder.state !== 'closed') {
this.decoder.close();
}
if (this.alphaDecoder && this.alphaDecoder.state !== 'closed') {
this.alphaDecoder.close();
}
this.colorQueue.forEach(x => x.close());
this.colorQueue.length = 0;
@@ -2202,7 +2207,10 @@ class AudioDecoderWrapper extends DecoderWrapper<AudioSample> {
void this.customDecoderCallSerializer.call(() => this.customDecoder!.close());
} else {
assert(this.decoder);
this.decoder.close();
if (this.decoder.state !== 'closed') {
this.decoder.close();
}
}
}
}