[gst-devel] python-gst and garbage collection of pipeline elements
Edward Hervey
bilboed at gmail.com
Mon Nov 27 20:31:29 CET 2006
Hi,
On 11/27/06, Antoine Pitrou <antoine.pitrou at wengo.fr> wrote:
>
> Hi,
>
> > I cannot reproduce the problem in the way you describe. Can you provide
> > a (preferably small) example program that triggers the problem?
>
> Well, thanks for asking that.
> I've tried to reproduce it and it actually boils down to : if I call
> gc.collect() only once, not everything is collected, but if I call it
> twice or more, it's ok.
> I didn't expect this because my code does not create any obvious loop
> containing the weakref'd attribute, so I thought refcounting would
> finalize it at soon as possible.
>
> The clean solution I've found is to remove that attribute in the
> do_stop() method of the containing element, which automatically
> finalizes it without having to call gc.collect().
Nice to see people writing python-based elements. Would your
elements be of any use to the gst community ? We could put them in
gst-python/examples/ if they're good.
Edward
>
> So, sorry for the false alert.
>
> Regards
>
> Antoine.
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
--
Edward Hervey
Multimedia editing developer / Fluendo S.A.
http://www.pitivi.org/
More information about the gstreamer-devel
mailing list