mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Switch default of async crypto mode to disabled
There are reproducible issues with codec timeouts when using this API, so we disable it entirely until we know more about potential fixes and where they are available. Issue: androidx/media#1641 #cherrypick PiperOrigin-RevId: 707025950
This commit is contained in:
parent
12566a50d5
commit
71f82df57f
@ -35,6 +35,9 @@
|
||||
* Provide `MediaCodecInfo` of the codec that will be initialized in
|
||||
`MediaCodecRenderer.onReadyToInitializeCodec`
|
||||
([#1963](https://github.com/androidx/media/pull/1963)).
|
||||
* Disable use of asynchronous decryption in MediaCodec to avoid reported
|
||||
codec timeout issues with this platform API
|
||||
([#1641](https://github.com/androidx/media/issues/1641)).
|
||||
* Transformer:
|
||||
* Update parameters of `VideoFrameProcessor.registerInputStream` and
|
||||
`VideoFrameProcessor.Listener.onInputStreamRegistered` to use `Format`.
|
||||
|
@ -80,7 +80,7 @@ import java.nio.ByteBuffer;
|
||||
Supplier<HandlerThread> queueingThreadSupplier) {
|
||||
this.callbackThreadSupplier = callbackThreadSupplier;
|
||||
this.queueingThreadSupplier = queueingThreadSupplier;
|
||||
enableSynchronousBufferQueueingWithAsyncCryptoFlag = true;
|
||||
enableSynchronousBufferQueueingWithAsyncCryptoFlag = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -67,7 +67,7 @@ public final class DefaultMediaCodecAdapterFactory implements MediaCodecAdapter.
|
||||
@Deprecated
|
||||
public DefaultMediaCodecAdapterFactory() {
|
||||
asynchronousMode = MODE_DEFAULT;
|
||||
asyncCryptoFlagEnabled = true;
|
||||
asyncCryptoFlagEnabled = false;
|
||||
context = null;
|
||||
}
|
||||
|
||||
@ -79,7 +79,7 @@ public final class DefaultMediaCodecAdapterFactory implements MediaCodecAdapter.
|
||||
public DefaultMediaCodecAdapterFactory(Context context) {
|
||||
this.context = context;
|
||||
asynchronousMode = MODE_DEFAULT;
|
||||
asyncCryptoFlagEnabled = true;
|
||||
asyncCryptoFlagEnabled = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user