[gst-devel] How to intimate gstreamer to provide a custom input buffer size in chain function

Michael Smith msmith at fluendo.com
Fri Mar 16 12:44:16 CET 2007


On Fri, 2007-03-16 at 17:00 +0530, Pankaj Sen wrote:
> Hi,
>  
> In GStreamer plugin chain function usually I get an input buffer size
> of 4096 bytes. How to intimate gstreamer to give me a buffer size of
> 8192 or more or any custom buffer size that I want. 

You can't do that. 

If you need a certain amount of data to be able to process it, you
should use the GstAdapter object, push each incoming buffer into that as
it arrives, then pass that off to your main processing function once it
has sufficient data in it.

Mike




More information about the gstreamer-devel mailing list