GNOME Bugzilla – Bug 577794
[playbin2] leaks elements set through properties
Last modified: 2009-04-10 12:31:46 UTC
When setting the video-sink, audio-sink or vis-plugin properties of playbin2, a reference to the passed element is leaked. Haven't checked yet if text-sink is affected too. Attaching test program and proposed patch for audio-sink, video-sink leakage. vis-plugin is harder to fix, patch might come later.
Created attachment 131960 [details] Simple test program Depending on which kind of file you point it to (audio only vs. audio+video), this can trivially reproduce the leaks.
Created attachment 131961 [details] [review] Proposed patch for audio-sink, video-sink leakage
A similar patch: commit 33ef15fad6bb9047da7314b5fb6a34772e83f0f5 Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Fri Apr 10 13:27:41 2009 +0200 playsink: fix refcounting of custom elements Sink the custom sinks, let other elements we create be sunken by the bin we add them to. Fixes #577794.
commit 1a557e60eaef102aefd97831811aec2161cbf158 Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Fri Apr 10 13:42:56 2009 +0200 playbin2: fix refcounting of visualisations See #577794.
commit 4f89685217d33a24dd9e9c079730fbb56ca83ed8 Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Fri Apr 10 13:44:40 2009 +0200 check: add a unit test for playbin2 Add unit test for playbin2 and include the refcount test in #577794.