mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 13:53:53 +02:00
Add @mediabunny/dts extension package
This commit is contained in:
+11
-3
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user