mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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
|
if (nextSubtitle != null && nextSubtitle.startTimeUs <= positionUs) {
|
||||||
|| nextSubtitle.startTimeUs <= positionUs)) {
|
|
||||||
// Advance to the next subtitle. Sync the next event index and trigger an update.
|
// Advance to the next subtitle. Sync the next event index and trigger an update.
|
||||||
subtitle = nextSubtitle;
|
subtitle = nextSubtitle;
|
||||||
nextSubtitle = null;
|
nextSubtitle = null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue