Schedule doSomeWork after setVideoOutput

PiperOrigin-RevId: 693374521
This commit is contained in:
michaelkatz 2024-11-05 09:18:55 -08:00 committed by Copybara-Service
parent 286273c10e
commit 28b75f7d29

View File

@ -1552,7 +1552,10 @@ import java.util.concurrent.atomic.AtomicBoolean;
for (RendererHolder renderer : renderers) {
renderer.setVideoOutput(videoOutput);
}
if (playbackInfo.playbackState == Player.STATE_READY
|| playbackInfo.playbackState == Player.STATE_BUFFERING) {
handler.sendEmptyMessage(MSG_DO_SOME_WORK);
}
if (processedFlag != null) {
synchronized (this) {
processedFlag.set(true);