mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Release DownloadHelper automatically if preparation failed.
This prevents further unexpected updates if the MediaSource happens to finish its preparation at a later point. Issue:#5915 PiperOrigin-RevId: 249439246
This commit is contained in:
parent
118218cc73
commit
cfefdbc134
2 changed files with 4 additions and 0 deletions
|
|
@ -29,6 +29,9 @@
|
|||
([#5891](https://github.com/google/ExoPlayer/issues/5891)).
|
||||
* Add ProgressUpdateListener to PlayerControlView
|
||||
([#5834](https://github.com/google/ExoPlayer/issues/5834)).
|
||||
* Prevent unexpected `DownloadHelper.Callback.onPrepared` callbacks after the
|
||||
preparation of the `DownloadHelper` failed
|
||||
([#5915](https://github.com/google/ExoPlayer/issues/5915)).
|
||||
|
||||
### 2.10.1 ###
|
||||
|
||||
|
|
|
|||
|
|
@ -943,6 +943,7 @@ public final class DownloadHelper {
|
|||
downloadHelper.onMediaPrepared();
|
||||
return true;
|
||||
case DOWNLOAD_HELPER_CALLBACK_MESSAGE_FAILED:
|
||||
release();
|
||||
downloadHelper.onMediaPreparationFailed((IOException) Util.castNonNull(msg.obj));
|
||||
return true;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue