gstreamer-java / gst1-java-core

Java bindings for GStreamer 1.x
GNU Lesser General Public License v3.0
194 stars 72 forks source link

Switch to CountDownLatch in SampleTester and BufferProbeTester. #222

Closed neilcsmith-net closed 3 years ago

neilcsmith-net commented 3 years ago

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