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 b7d149604e
commit 680d3fda3e
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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);
} }
/** /**