Need more information regarding Element States to play multiple media files in loop

Sebastian Dröge sebastian at
Wed Apr 9 23:42:21 PDT 2014

On Mo, 2014-04-07 at 22:06 -0700, Monalisa wrote:
> Hello,
> I am developing an application using qt gstreamer which need to play 4-5
> media files in loop continuously. The gstreamer manual says 
> "GST_STATE_NULL: this is the default state. No resources are allocated in
> this
> state, so, transitioning to it will free all resources." 
> On reaching end of stream I am setting the state to null and playing the
> next media, but it seems it is
> not freeing resources as there is a huge memory leak. Instead if I set the
> state to GST_STATE_READY there is no memory leak but after playing
> continuously
> for 1-2 hours, the video starts freezing. Please suggest if need to do
> something else to free the resources

What you describe alone shouldn't result in memory leaks in either way.
Please either provide a testcase that reproduces these leaks or check
with valgrind and/or massif where all the memory is leaked or otherwise

Sebastian Dröge, Centricular Ltd -
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the gstreamer-devel mailing list