mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Allow null DataSink.Factory in CacheDataSourceFactory
CacheDataSource allows null DataSink. Do the same in CacheDataSourceFactory. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=149750696
This commit is contained in:
parent
cb0187959c
commit
f21cdcb9c5
1 changed files with 2 additions and 1 deletions
|
|
@ -68,7 +68,8 @@ public final class CacheDataSourceFactory implements DataSource.Factory {
|
||||||
public CacheDataSource createDataSource() {
|
public CacheDataSource createDataSource() {
|
||||||
return new CacheDataSource(cache, upstreamFactory.createDataSource(),
|
return new CacheDataSource(cache, upstreamFactory.createDataSource(),
|
||||||
cacheReadDataSourceFactory.createDataSource(),
|
cacheReadDataSourceFactory.createDataSource(),
|
||||||
cacheWriteDataSinkFactory.createDataSink(), flags, eventListener);
|
cacheWriteDataSinkFactory != null ? cacheWriteDataSinkFactory.createDataSink() : null,
|
||||||
|
flags, eventListener);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue