mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Assert baseDataSourceFactory non-null in DefaultDataSource.Factory
This gives a faster/clearer failure for Issue: androidx/media#1718. PiperOrigin-RevId: 675896262
This commit is contained in:
parent
dc66c9160c
commit
3facfbf542
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ public final class DefaultDataSource implements DataSource {
|
|||
*/
|
||||
public Factory(Context context, DataSource.Factory baseDataSourceFactory) {
|
||||
this.context = context.getApplicationContext();
|
||||
this.baseDataSourceFactory = baseDataSourceFactory;
|
||||
this.baseDataSourceFactory = Assertions.checkNotNull(baseDataSourceFactory);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue