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

Antoine Pitrou antoine.pitrou at wengo.fr
Thu Nov 23 10:45:29 CET 2006


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.






More information about the gstreamer-devel mailing list