mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Move queue reevaluate buffer to only execute when playWhenReady is set to false
This commit is contained in:
parent
15bdbf735d
commit
8b0cfda178
@ -961,6 +961,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
if (!shouldPlayWhenReady()) {
|
||||
stopRenderers();
|
||||
updatePlaybackPositions();
|
||||
queue.reevaluateBuffer(rendererPositionUs);
|
||||
} else {
|
||||
if (playbackInfo.playbackState == Player.STATE_READY) {
|
||||
mediaClock.start();
|
||||
@ -970,7 +971,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
handler.sendEmptyMessage(MSG_DO_SOME_WORK);
|
||||
}
|
||||
}
|
||||
queue.reevaluateBuffer(rendererPositionUs);
|
||||
}
|
||||
|
||||
private void setPauseAtEndOfWindowInternal(boolean pauseAtEndOfWindow)
|
||||
|
Loading…
x
Reference in New Issue
Block a user