GNOME Bugzilla – Bug 741198
playbin: leaks GstPads
Last modified: 2014-12-12 15:58:08 UTC
Created attachment 292240 [details]
Doing a create/play/destroy cycle of playbin leaks memory. Using the new glib GObject "instance-count" and GtkInspector I see that each cycle leaks one GstGhostPad and one GstProxyPad; maybe that helps.
Python example attached.
Thanks for reporting. It should be fixed in git master
Author: Thiago Santos <firstname.lastname@example.org>
Date: Wed Dec 10 13:23:23 2014 -0300
playbin2: always unref the combiner sinkpad when removing the srcpad
Create a function to do the pad cleanup of the GstSourceCombine struct
and use it to not forget to also cleanup the sink pad and fix a memory
Memory usage is constant now. Thanks!