Disposing objects received via the GStreamer bus #259
Unanswered
JakubVanek
asked this question in
Q&A
Replies: 1 comment 7 replies
-
The bindings cache references that are reachable from elsewhere, including via GObject references. You probably want to leave them cached. Why do you think you have a problem? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I've recently been tracking down "leaking" GStreamer objects in my application. I've found that if I add a
STATE_CHANGED
listener toBus
, over time my application starts to hold references to various Elements within the pipeline. Is there a way to manually drop the Java references to these elements? I've tried usinginvalidate()
andclose()
. However, these do not really work the way I'd like them to. They do free the element, but they free event the elements that I'm holding elsewhere in the application (e.g.WebRTCBin
s and similar). Ideally, I would like to not let Java hold references to elements that are not reachable from elsewhere (I can.close()
those elements). Is there a better solution than manually keeping a list "known" object references?Thank you,
Jakub
Beta Was this translation helpful? Give feedback.
All reactions