-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: set audio status on loaders when setting up media groups (#1126)
Although the audio status is set in onTrackChanged for media groups, and the function is called when the media groups are first set up, the track is not always considered changed. This means that for demuxed audio, the main loader may still think it should be using its own audio itself, leading to issues when crossing discontinuities (i.e., the main loader will cross the discontinuity before waiting for the audio loader to be ready, leading to audio timestamps that aren't correct). This change ensures that the audio status is set on setup, regardless of whether the track is considered changed. Subsequent changes are handled in onTrackChanged.
- Loading branch information
Showing
2 changed files
with
151 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters