Regarding buffer size

Sebastian Dröge sebastian at centricular.com
Fri Jan 3 04:50:39 PST 2014


On Fr, 2014-01-03 at 04:14 -0800, Shilpa Chandrappa wrote:
> Thank you.
> 
> I want to receive 8192 Bytes every time and pass it on to a API for some
> processing. API will process on 8192 Bytes each time. 
> 
> How to pull 8192 Bytes every time? I tried with blocksize option in appsink,
> but I don't see any change.

Use an GstAdapter into which you put all buffers, and then do a loop
like and in there pull chunks of 8192 bytes from the adapter.

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140103/68a71bee/attachment.pgp>


More information about the gstreamer-devel mailing list