Skip to content
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

Bugfix: segment loading order with gaps #4864

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

robwalch
Copy link
Collaborator

This PR will...

Stop using nextLoadPosition to find fragments as soon as the first media segment is appended. Use media timecode when fragmented MP4 mux input has audio and video.

Why is this Pull Request needed?

Prevents stream controllers from skipping segments and appending media at the wrong time when the first playlist segment duration is longer than the parsed media segment. This could happen when an audio encoder drops out leaving a large gap which is then added to the segment duration without splitting it into a new segment or marking it with a GAP tag.

Resolves issues:

#4828

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

@robwalch robwalch added this to the 1.2.2 milestone Aug 27, 2022
@robwalch robwalch marked this pull request as draft August 27, 2022 19:55
…ncorrect or is greater than media segment duration

#4828
@robwalch robwalch force-pushed the bugfix/segment-loading-order branch from b31b0e4 to eae75e1 Compare August 27, 2022 20:24
@robwalch robwalch marked this pull request as ready for review August 27, 2022 20:24
@robwalch robwalch merged commit ce6075b into master Aug 29, 2022
@robwalch robwalch deleted the bugfix/segment-loading-order branch August 29, 2022 16:13
@robwalch robwalch mentioned this pull request Sep 22, 2022
5 tasks
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.

1 participant