mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Create a base class for DASH downloading related tests
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=158129802
This commit is contained in:
parent
edbc2046e2
commit
5c2c3c5c63
1 changed files with 2 additions and 1 deletions
|
|
@ -110,7 +110,8 @@ public final class SimpleCache implements Cache {
|
||||||
@Override
|
@Override
|
||||||
public synchronized NavigableSet<CacheSpan> getCachedSpans(String key) {
|
public synchronized NavigableSet<CacheSpan> getCachedSpans(String key) {
|
||||||
CachedContent cachedContent = index.get(key);
|
CachedContent cachedContent = index.get(key);
|
||||||
return cachedContent == null ? null : new TreeSet<CacheSpan>(cachedContent.getSpans());
|
return cachedContent == null || cachedContent.isEmpty() ? null
|
||||||
|
: new TreeSet<CacheSpan>(cachedContent.getSpans());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue