mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix download cancellation
Issue: #4403 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=201525284
This commit is contained in:
parent
10690630bf
commit
a610857017
2 changed files with 6 additions and 4 deletions
|
|
@ -38,6 +38,8 @@
|
||||||
CommentFrame to InternalFrame for frames with gapless metadata in MP4.
|
CommentFrame to InternalFrame for frames with gapless metadata in MP4.
|
||||||
* Allow setting the `Looper`, which is used to access the player, in
|
* Allow setting the `Looper`, which is used to access the player, in
|
||||||
`ExoPlayerFactory` ([#4278](https://github.com/google/ExoPlayer/issues/4278)).
|
`ExoPlayerFactory` ([#4278](https://github.com/google/ExoPlayer/issues/4278)).
|
||||||
|
* Fix a bug where download cancellation was ignored
|
||||||
|
([#4403](https://github.com/google/ExoPlayer/issues/4403)).
|
||||||
|
|
||||||
### 2.8.2 ###
|
### 2.8.2 ###
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -138,11 +138,11 @@ public final class CacheUtil {
|
||||||
cache,
|
cache,
|
||||||
new CacheDataSource(cache, upstream),
|
new CacheDataSource(cache, upstream),
|
||||||
new byte[DEFAULT_BUFFER_SIZE_BYTES],
|
new byte[DEFAULT_BUFFER_SIZE_BYTES],
|
||||||
null,
|
/* priorityTaskManager= */ null,
|
||||||
0,
|
/* priority= */ 0,
|
||||||
counters,
|
counters,
|
||||||
null,
|
isCanceled,
|
||||||
false);
|
/* enableEOFException= */ false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue