gstreamer-java / gst1-java-core

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

Add support for generic probes on Pad. #226

Closed neilcsmith-net closed 3 years ago

neilcsmith-net commented 3 years ago

Add support for generic probes on Pad, better matching upstream API. Fixes #189

neilcsmith-net commented 3 years ago

Need to check / add in support for probe removal return value - must release Pad.PROBE implementation to allow it to be GC'd. Add tests for this too. Storing probes and IDs in a Map<PROBE, NativeLong> inside Pad might be a better idea than current behaviour.

neilcsmith-net commented 3 years ago

@lafoletc I agree needs a Query test. However, porting allocation query test didn't seem to work correctly. I also need to look at fixing up ProbeTester, but only thing I seemed to get was a Caps query with that pipeline when running a query probe IIRC. Feel free to take a look if you want.