Repository navigation
fix: close races in stats sampling and the JavaFX view - #539
Merged
Merged
Conversation
The first sample is due at once and may run before its task is known, so it could not cancel it. Check again once the task is set.
The pacer now only counts the ticks due. Pushing into the source moves to a pool of its own, with at most one hand-over per track at a time, and missed ticks are made up for as before.
A conversion runs outside the lock of clear() and could put the old picture back. A generation counter now tells the frames that came before the clear.
CustomAudioImpl.beforeRelease() skipped the one of LocalAudioImpl, so a change still queued reached its handler after the track closed.
This reverts commit 7df9590.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
VideoView.clear()in JavaFX could be undone by a conversion already running. Frames that came before the clear are now dropped.CustomAudioImpl.beforeRelease()skipped the one ofLocalAudioImpl, so a voice activity change still queued reached its handler after the track closed.