Fix download cancellation

Issue: #4403

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=201525284
This commit is contained in:
andrewlewis 2018-06-21 08:03:30 -07:00 committed by Oliver Woodman
parent 10690630bf
commit a610857017
2 changed files with 6 additions and 4 deletions

View file

@ -38,6 +38,8 @@
CommentFrame to InternalFrame for frames with gapless metadata in MP4.
* Allow setting the `Looper`, which is used to access the player, in
`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 ###

View file

@ -138,11 +138,11 @@ public final class CacheUtil {
cache,
new CacheDataSource(cache, upstream),
new byte[DEFAULT_BUFFER_SIZE_BYTES],
null,
0,
/* priorityTaskManager= */ null,
/* priority= */ 0,
counters,
null,
false);
isCanceled,
/* enableEOFException= */ false);
}
/**