After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 741198 - playbin: leaks GstPads
playbin: leaks GstPads
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other All
: Normal normal
: 1.4.5
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-12-06 16:17 UTC by Christoph Reiter (lazka)
Modified: 2014-12-12 15:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
python example (739 bytes, text/x-python)
2014-12-06 16:17 UTC, Christoph Reiter (lazka)
Details

Description Christoph Reiter (lazka) 2014-12-06 16:17:07 UTC
Created attachment 292240 [details]
python example

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.
Comment 1 Thiago Sousa Santos 2014-12-10 16:52:20 UTC
Thanks for reporting. It should be fixed in git master

commit 7e801a5f26f5a297b795f83d18d178c5ace42cf7
Author: Thiago Santos <thiagoss@osg.samsung.com>
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
    leak.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=741198
Comment 2 Christoph Reiter (lazka) 2014-12-10 17:47:16 UTC
Memory usage is constant now. Thanks!