mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Make MediaSource.Factory a nullable parameter.
In some cases, callers will need to pass in both BitmapLoader and Codec.DecoderFactory without specifying a custom MediaSource.Factory. Omitting the annotation will result in NULL_FOR_NONNULL_TYPE compilation errors in Kotlin. PiperOrigin-RevId: 695481606
This commit is contained in:
parent
01c784775e
commit
4acd1b970c
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ public final class DefaultAssetLoaderFactory implements AssetLoader.Factory {
|
|||
Context context,
|
||||
Codec.DecoderFactory decoderFactory,
|
||||
Clock clock,
|
||||
MediaSource.Factory mediaSourceFactory,
|
||||
@Nullable MediaSource.Factory mediaSourceFactory,
|
||||
BitmapLoader bitmapLoader) {
|
||||
this.context = context.getApplicationContext();
|
||||
this.decoderFactory = decoderFactory;
|
||||
|
|
|
|||
Loading…
Reference in a new issue