Skip to content

Fix subtitle segment loading at live start #7349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2025

Conversation

robwalch
Copy link
Collaborator

This PR will...

Fix subtitle segment loading hanging on live start with mismatched discontinuity

Why is this Pull Request needed?

The subtitle-stream-controller must determine where to begin loading segments in the same way that the audio-stream-controller does, in sync with the live start determined by the main stream-controller.

Are there any points in the code the reviewer needs to double check?

If subtitle segments are loaded in another discontinuity domain for which the init PTS is not resolved, the segment data should be dropped, and subtitle segment loading resumed.

Resolves issues:

Fixes #7347

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

@Frenzie
Copy link
Contributor

Frenzie commented Jun 26, 2025

I think it works. :-)

@robwalch robwalch force-pushed the bugfix/subtitle-segment-start-position branch from 06c3465 to 0912131 Compare June 26, 2025 15:34
@robwalch robwalch force-pushed the bugfix/subtitle-segment-start-position branch from 0912131 to e19438a Compare June 26, 2025 15:39
@robwalch robwalch merged commit 7752402 into master Jun 26, 2025
16 checks passed
@robwalch robwalch deleted the bugfix/subtitle-segment-start-position branch June 26, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subtitle alignment not always triggered after DISCONTINUITY
2 participants