[gst-devel] Re: bufferpools

David Schleef ds at schleef.org
Thu Jan 8 17:13:02 CET 2004


On Fri, Jan 09, 2004 at 02:00:24AM +0100, Julien MOUTTE wrote:
> 
> if an element use gst_buffer_new_and_alloc but the peer element
> implements a bufferalloc function the bufferalloc function is never used
> right ?

Correct.

> so basically a first thing to do would be to implement bufferalloc in
> ximagesink, that would be transparent and unused for the rest of plugins
> and then implement the gst_pad_alloc_buffer in possible peers of
> ximagesink such as ffcolorspace, videoscale, videotestsrc etc..

You speak only the truth.

By the way, the offset parameter should be GST_BUFFER_OFFSET_NONE,
unless you're outputting to filesink, in which case it should be the
offset in the file.  (Yes, this is disgusting.  This could be solved
by "transient" buffers (buffers that can't be held between iterations),
but it may require subtle changes to a few, as yet unknown, elements.)



dave...





More information about the gstreamer-devel mailing list