Skip to content

Switch to CountDownLatch in SampleTester and BufferProbeTester. #222

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
Oct 27, 2020

Conversation

neilcsmith-net
Copy link
Member

Fixes concurrency issue in SampleTester and recent derived BufferProbeTester that was only showing on GitHub Actions testing. Because the pipeline was being started outside of the synchronized block the callback was occasionally called before the calling code had started waiting, causing an indefinite hang. Added use of CountDownLatch and timeout instead.

cc / @jcortellatmagicleap

@neilcsmith-net neilcsmith-net added this to the 1.3 milestone Oct 27, 2020
@neilcsmith-net neilcsmith-net merged commit da9c309 into gstreamer-java:master Oct 27, 2020
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