Commit 143a4dee by Oliver Woodman

If no buffers were queued, handle EoS directly.

Issue: #707
parent 59a789b3
......@@ -591,6 +591,10 @@ public abstract class MediaCodecTrackRenderer extends SampleSourceTrackRenderer
codecReconfigurationState = RECONFIGURATION_STATE_WRITE_PENDING;
}
inputStreamEnded = true;
if (!codecHasQueuedBuffers) {
processEndOfStream();
return false;
}
try {
if (codecNeedsEosPropagationWorkaround) {
// Do nothing.
......
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