Regarding buffer size
Sebastian Dröge
sebastian at centricular.com
Mon Jan 6 06:29:22 PST 2014
On Mo, 2014-01-06 at 04:26 -0800, Shilpa Chandrappa wrote:
> Linking libgstbase solved the issue.
>
> I am able to receive chunks of data. In the below code I am pulling 8192
> Bytes of data every time. If size is less than this, Looks like function is
> dropping the data. How to manage, not to drop any data ?
Allocate the adapter in a central place. Currently you allocate it once
per buffer, of course it "drops" the data between each callback then.
> And also I cant pass < 8192Bytes to API function.
Well, if you can also pass less than that to the API, adjust the loop
accordingly to pull out as much as is available but at maximum 8192
bytes. Using an adapter in that case is probably not ideal, you could
just have a loop without an adapter for that.
--
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/20140106/7bb6e5e4/attachment-0001.pgp>
More information about the gstreamer-devel
mailing list