[gst-devel] python-gst and garbage collection of pipeline elements

René Stadler mail at renestadler.de
Thu Nov 23 15:56:13 CET 2006

Am Donnerstag, den 23.11.2006, 10:45 +0100 schrieb Antoine Pitrou:
> Hi,
> I wrote some gstreamer elements in Python (inheriting from gst.BaseSink,
> using __gobject_init__ and the like).
> It seems that when a pipeline is stopped then destroyed
> ("pipeline.set_state(gst.STATE_NULL)" followed by "del pipeline"), the
> elements which composed this pipeline are not automatically collected (I
> have a weakref callback on one attribute of those elements and the
> callback is never called).
> Just to check, I added a __del__ method and it isn't called either (but
> __del__ is unreliable anyway, so I can't be sure). 
> Explicitly calling gc.collect() doesn't change anything.
> Is there something special to know about the way pipeline elements
> written in Python are collected?
> The python-gstreamer version is 0.10.4-0ubuntu1.
> Antoine.

I cannot reproduce the problem in the way you describe.  Can you provide
a (preferably small) example program that triggers the problem?

  René Stadler

More information about the gstreamer-devel mailing list