mirror of
https://github.com/samsonjs/media.git
synced 2026-04-17 13:15:47 +00:00
Fix checking imaAdMediaInfo nullness
It's intended to log a warning in this case, rather than throw. Issue: #8290 PiperOrigin-RevId: 347790527
This commit is contained in:
parent
125de92989
commit
ffa746f390
2 changed files with 5 additions and 1 deletions
|
|
@ -10,6 +10,9 @@
|
|||
* IMA extension:
|
||||
* Fix a condition where playback can get stuck before an empty ad
|
||||
([#8205](https://github.com/google/ExoPlayer/issues/8205)).
|
||||
* Log a warning rather than throwing when reaching the end of the stream
|
||||
with an ad playing but without ad media info
|
||||
([#8290](https://github.com/google/ExoPlayer/issues/8290)).
|
||||
* Text:
|
||||
* Gracefully handle null-terminated subtitle content in Matroska
|
||||
containers.
|
||||
|
|
@ -78,6 +81,7 @@
|
|||
* Notify onBufferingEnded when the state of origin player becomes
|
||||
`STATE_IDLE` or `STATE_ENDED`.
|
||||
* Allow to remove all playlist items that makes the player reset.
|
||||
([#8047](https://github.com/google/ExoPlayer/issues/8047)).
|
||||
|
||||
### 2.12.1 (2020-10-23) ###
|
||||
|
||||
|
|
|
|||
|
|
@ -1260,7 +1260,7 @@ public final class ImaAdsLoader
|
|||
&& playWhenReady) {
|
||||
ensureSentContentCompleteIfAtEndOfStream();
|
||||
} else if (imaAdState != IMA_AD_STATE_NONE && playbackState == Player.STATE_ENDED) {
|
||||
AdMediaInfo adMediaInfo = checkNotNull(imaAdMediaInfo);
|
||||
@Nullable AdMediaInfo adMediaInfo = imaAdMediaInfo;
|
||||
if (adMediaInfo == null) {
|
||||
Log.w(TAG, "onEnded without ad media info");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue