Commit a6108570 by andrewlewis Committed by Oliver Woodman

Fix download cancellation

Issue: #4403

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=201525284
parent 10690630
...@@ -38,6 +38,8 @@ ...@@ -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 { ...@@ -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);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment