Re: buffer management [was Re: libsoup-2.4 branch merged to trunk]



On Fri, Feb 01, 2008 at 12:33:15AM +0100, Wouter Cloetens wrote:
> (1) RESPONSE_BLOCK_SIZE in soup-message-io.c is the first issue. I would
> make this dynamic by adding a buffer-size property, to end up in
> SoupMessageIOData. Not for read_metadata() perhaps, but certainly for
> read_body_chunk().
> 
> (2) 
> > Another possibility would be to have a "gst_buffer_set_free_func()" or
> > something, so that you could have the GstBuffer share the memory with
> > the SoupBuffer directly, and then free the SoupBuffer when the GstBuffer
> > is freed.

Patch attached to bug 513810.

I discovered a third issue; GStreamer allows for downstream elements to
allocate the buffers in which to write. This is especially useful if the
next element in the pipeline does hardware buffer management to offload
some operation to hardware.
To manage that, I'd need to be able to configure a callback to do the
actual allocation. That should be easy enough... Tomorrow's job.

bfn, Wouter


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]