mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
Fix unrealistic FakeSampleStream.isReady
The FakeSampleStream is currently always ready even if it doesn't have any samples to read. Fix that by checking for the conditions under which read() will be successful. PiperOrigin-RevId: 301371031
This commit is contained in:
parent
cb414e8743
commit
71eec8ead1
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ public final class FakeSampleStream implements SampleStream {
|
|||
|
||||
@Override
|
||||
public boolean isReady() {
|
||||
return true;
|
||||
return !readFormat || readEOSBuffer || !fakeSampleStreamItems.isEmpty();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in a new issue