mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Implement DefaultVideoSink.isReady
PiperOrigin-RevId: 685720088
This commit is contained in:
parent
adb35ee7c4
commit
1084c9ea98
2 changed files with 2 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ import java.util.concurrent.Executor;
|
|||
|
||||
@Override
|
||||
public boolean isReady(boolean rendererOtherwiseReady) {
|
||||
throw new UnsupportedOperationException();
|
||||
return videoFrameReleaseControl.isReady(rendererOtherwiseReady);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -420,7 +420,7 @@ public final class PlaybackVideoGraphWrapper implements VideoSinkProvider, Video
|
|||
}
|
||||
|
||||
private boolean isReady(boolean rendererOtherwiseReady) {
|
||||
return videoFrameReleaseControl.isReady(
|
||||
return defaultVideoSink.isReady(
|
||||
/* rendererOtherwiseReady= */ rendererOtherwiseReady && pendingFlushCount == 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue