[gst-devel] Reuse of DecodeBin or PlayBin
thaytan at noraisin.net
Wed Jul 12 12:18:40 CEST 2006
On Wed, 2006-07-12 at 12:04 +0200, Jens Schmutzler wrote:
> I would like to know if it is possible to reuse Decodebin and/or Playbin for a new srcfile. In my program reusing them introduces memory leaks. The gst-plugins-base-0.10.8/gst/playback/README file says that "reusing" and "cleanup in READY state" is still on the TODO list (for both decodebin and playbin). The file is quite old (May 2005) so I do not know if this is still accurate... (I did not find any hints in the CVS changelog on this topic)
> My program is supposed to play different video files one after another in a "infinite" loop. It works fine but memory usage increases for each newly loaded file. If I am not totally mistaken I need to reuse decodebin/playbin for this purpose?!
> Thanks a lot for pointing me in the right direction.
Actually, I'm just looking at this exact issue. Playbin is supposed to
clean up all its memory when returning to the READY state.
The increasing memory usage is a bug - I'm pretty sure playbin wasn't
doing this at some point in the past, and I'm trying to figure it out at
More information about the gstreamer-devel