mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Allow sink provider to be flushed before initialized
VideoSink.initialize will be added in a next CL and we want to allow flush to be called before and after initialize. PiperOrigin-RevId: 624946957
This commit is contained in:
parent
00e3753d62
commit
41d5571660
1 changed files with 3 additions and 0 deletions
|
|
@ -505,6 +505,9 @@ public final class CompositingVideoSinkProvider
|
||||||
}
|
}
|
||||||
|
|
||||||
private void flush() {
|
private void flush() {
|
||||||
|
if (!isInitialized()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
pendingFlushCount++;
|
pendingFlushCount++;
|
||||||
// Flush the render control now to ensure it has no data, eg calling isReady() must return false
|
// Flush the render control now to ensure it has no data, eg calling isReady() must return false
|
||||||
// and render() should not render any frames.
|
// and render() should not render any frames.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue