mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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:
|
* IMA extension:
|
||||||
* Fix a condition where playback can get stuck before an empty ad
|
* Fix a condition where playback can get stuck before an empty ad
|
||||||
([#8205](https://github.com/google/ExoPlayer/issues/8205)).
|
([#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:
|
* Text:
|
||||||
* Gracefully handle null-terminated subtitle content in Matroska
|
* Gracefully handle null-terminated subtitle content in Matroska
|
||||||
containers.
|
containers.
|
||||||
|
|
@ -78,6 +81,7 @@
|
||||||
* Notify onBufferingEnded when the state of origin player becomes
|
* Notify onBufferingEnded when the state of origin player becomes
|
||||||
`STATE_IDLE` or `STATE_ENDED`.
|
`STATE_IDLE` or `STATE_ENDED`.
|
||||||
* Allow to remove all playlist items that makes the player reset.
|
* 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) ###
|
### 2.12.1 (2020-10-23) ###
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1260,7 +1260,7 @@ public final class ImaAdsLoader
|
||||||
&& playWhenReady) {
|
&& playWhenReady) {
|
||||||
ensureSentContentCompleteIfAtEndOfStream();
|
ensureSentContentCompleteIfAtEndOfStream();
|
||||||
} else if (imaAdState != IMA_AD_STATE_NONE && playbackState == Player.STATE_ENDED) {
|
} else if (imaAdState != IMA_AD_STATE_NONE && playbackState == Player.STATE_ENDED) {
|
||||||
AdMediaInfo adMediaInfo = checkNotNull(imaAdMediaInfo);
|
@Nullable AdMediaInfo adMediaInfo = imaAdMediaInfo;
|
||||||
if (adMediaInfo == null) {
|
if (adMediaInfo == null) {
|
||||||
Log.w(TAG, "onEnded without ad media info");
|
Log.w(TAG, "onEnded without ad media info");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue