mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Schedule doSomeWork after setVideoOutput
PiperOrigin-RevId: 693374521
This commit is contained in:
parent
286273c10e
commit
28b75f7d29
1 changed files with 4 additions and 1 deletions
|
|
@ -1552,7 +1552,10 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
for (RendererHolder renderer : renderers) {
|
for (RendererHolder renderer : renderers) {
|
||||||
renderer.setVideoOutput(videoOutput);
|
renderer.setVideoOutput(videoOutput);
|
||||||
}
|
}
|
||||||
|
if (playbackInfo.playbackState == Player.STATE_READY
|
||||||
|
|| playbackInfo.playbackState == Player.STATE_BUFFERING) {
|
||||||
|
handler.sendEmptyMessage(MSG_DO_SOME_WORK);
|
||||||
|
}
|
||||||
if (processedFlag != null) {
|
if (processedFlag != null) {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
processedFlag.set(true);
|
processedFlag.set(true);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue