mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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,
|
Context context,
|
||||||
Codec.DecoderFactory decoderFactory,
|
Codec.DecoderFactory decoderFactory,
|
||||||
Clock clock,
|
Clock clock,
|
||||||
MediaSource.Factory mediaSourceFactory,
|
@Nullable MediaSource.Factory mediaSourceFactory,
|
||||||
BitmapLoader bitmapLoader) {
|
BitmapLoader bitmapLoader) {
|
||||||
this.context = context.getApplicationContext();
|
this.context = context.getApplicationContext();
|
||||||
this.decoderFactory = decoderFactory;
|
this.decoderFactory = decoderFactory;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue