Skip to content

Conversation

@neilcsmith-net
Copy link
Member

Fix #176 where Promise change listener can be garbage collected. Keep GstCallback, which in turn wraps user function, in a field.

Keep GstCallback in field reference (which in turn holds reference to user supplied PROMISE_CHANGE listener). Both must live as long as Promise itself.
@neilcsmith-net neilcsmith-net added this to the 1.2 milestone Apr 17, 2020
@neilcsmith-net neilcsmith-net merged commit 026d16b into gstreamer-java:master May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change func got collected before triggering

1 participant