Commit 680d3fda by andrewlewis Committed by Oliver Woodman

Fix download cancellation

Issue: #4403

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=201525284
parent b7d14960
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
([#3906](https://github.com/google/ExoPlayer/issues/3906)). ([#3906](https://github.com/google/ExoPlayer/issues/3906)).
* Fix crash downloading HLS media playlists * Fix crash downloading HLS media playlists
([#4396](https://github.com/google/ExoPlayer/issues/4396)). ([#4396](https://github.com/google/ExoPlayer/issues/4396)).
* Fix a bug where download cancellation was ignored
([#4403](https://github.com/google/ExoPlayer/issues/4403)).
* Set `METADATA_KEY_TITLE` on media descriptions * Set `METADATA_KEY_TITLE` on media descriptions
([#4292](https://github.com/google/ExoPlayer/issues/4292)). ([#4292](https://github.com/google/ExoPlayer/issues/4292)).
* Allow apps to register custom MIME types * Allow apps to register custom MIME types
......
...@@ -129,11 +129,11 @@ public final class CacheUtil { ...@@ -129,11 +129,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