Commit 71eec8ea by tonihei Committed by Oliver Woodman

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
parent cb414e87
......@@ -164,7 +164,7 @@ public final class FakeSampleStream implements SampleStream {
@Override
public boolean isReady() {
return true;
return !readFormat || readEOSBuffer || !fakeSampleStreamItems.isEmpty();
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment