Copying buffer data

Nicolas Dufresne nicolas at ndufresne.ca
Mon Oct 2 13:48:51 UTC 2017


Le vendredi 29 septembre 2017 à 05:52 -0700, Ozhmegov a écrit :
>    I'm creating a new buffer in my gstreamer's plugins and then I don't
> touch that buffer. However, data of old buffer appears in new one. How does
> old buffer appear in new one?
> Here my C code:

For performance reason, a heap being asked for a buffer with the size
of a previously released buffer, will likely return you the same
buffer. Also, for performance reason, we don't clear the buffers. You
application will need to handle that if it wanted an zero-ed out
buffer.

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171002/81d22c53/attachment.sig>


More information about the gstreamer-devel mailing list