Commit a3a9c0f3 by olly Committed by Oliver Woodman

Sanity check current position <= written frame position

This avoids spurious position reports following an underrun.

Github: #1874

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=170344399
parent 7665571f
......@@ -332,6 +332,7 @@ public final class DefaultAudioSink implements AudioSink {
}
}
positionUs = Math.min(positionUs, framesToDurationUs(getWrittenFrames()));
return startMediaTimeUs + applySpeedup(positionUs);
}
......
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