[gst-devel] Leaking buffers

Tim Muller t.i.m at zen.co.uk
Fri Jun 1 14:00:01 CEST 2007


Will Newton <will.newton at gmail.com> wrote :

> I have an app that streams audio using the neon source plugin, the
> icydemux plugin and a fakesink. Occasionally the source plugin will
> throw an error when the http connection resets. I try to handle this
> by dismantling and rebuilding the pipeline. Unfortunately it seems
> that the way I do this is leaking buffers.
> 
> I diagnosed this by running under valgrind massif and the space used
> by gst_buffer_new_and_alloc takes a little uptick every time the
> stream resets.

$ G_SLICE=always-malloc valgrind --leak-check=yes app

usually works well for me (I presume that's with the memcheck tool).

 
> I have attached the app I am using. Could anyone help me find where
> these buffers should be getting unreffed but presumably aren't?

Looks like a bug in the error code path in neonhttpsrc. It doesn't unref the buffer when it returns GST_FLOW_ERROR. Should be fixed in CVS now.

Cheers
 -Tim









More information about the gstreamer-devel mailing list