Commit d0e6dec1 by ibaker Committed by Ian Baker

Fix EPI.seekTo to balance operation acks when seeking during an ad

This regression was introduced in
https://github.com/google/ExoPlayer/commit/b1e9257de143e9f377895b63868ef47b4fc0eea9

Issue: #8349

PiperOrigin-RevId: 347802049
parent ffa746f3
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
### 2.12.3 (???-??-??) ### ### 2.12.3 (???-??-??) ###
* Core library:
* Fix playback issues after seeking during an ad
([#8349](https://github.com/google/ExoPlayer/issues/8349)).
* UI: * UI:
* Fix issue where pop-up menus belonging to `StyledPlayerControlView` * Fix issue where pop-up menus belonging to `StyledPlayerControlView`
would not be dismissed when tapping outside of the menu area or pressing would not be dismissed when tapping outside of the menu area or pressing
......
...@@ -601,8 +601,10 @@ import java.util.concurrent.TimeoutException; ...@@ -601,8 +601,10 @@ import java.util.concurrent.TimeoutException;
// general because the midroll ad preceding the seek destination must be played before the // general because the midroll ad preceding the seek destination must be played before the
// content position can be played, if a different ad is playing at the moment. // content position can be played, if a different ad is playing at the moment.
Log.w(TAG, "seekTo ignored because an ad is playing"); Log.w(TAG, "seekTo ignored because an ad is playing");
playbackInfoUpdateListener.onPlaybackInfoUpdate( ExoPlayerImplInternal.PlaybackInfoUpdate playbackInfoUpdate =
new ExoPlayerImplInternal.PlaybackInfoUpdate(playbackInfo)); new ExoPlayerImplInternal.PlaybackInfoUpdate(this.playbackInfo);
playbackInfoUpdate.incrementPendingOperationAcks(1);
playbackInfoUpdateListener.onPlaybackInfoUpdate(playbackInfoUpdate);
return; return;
} }
@Player.State @Player.State
......
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