mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Don't move to next subtitle too soon.
Second time lucky. We should just move to the next subtitle when it's started. Simples.
This commit is contained in:
parent
530aa265ff
commit
e07c35815e
1 changed files with 1 additions and 2 deletions
|
|
@ -207,8 +207,7 @@ public final class TextTrackRenderer extends SampleSourceTrackRenderer implement
|
|||
}
|
||||
}
|
||||
|
||||
if (nextSubtitle != null && (subtitleNextEventTimeUs == Long.MAX_VALUE
|
||||
|| nextSubtitle.startTimeUs <= positionUs)) {
|
||||
if (nextSubtitle != null && nextSubtitle.startTimeUs <= positionUs) {
|
||||
// Advance to the next subtitle. Sync the next event index and trigger an update.
|
||||
subtitle = nextSubtitle;
|
||||
nextSubtitle = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue