Webrtcbin: Huge increasing memory leak while using appsink instead of autovideosink

Sebastian Dröge sebastian at centricular.com
Mon Jul 8 10:43:11 UTC 2019

On Mon, 2019-07-08 at 11:04 +0100, Neil C Smith wrote:
> On Mon, 8 Jul 2019 at 10:57, Neil Young <
> foreverneilyoung at googlemail.com> wrote:
> > Is there anything wrong with the sequence above, which could cause
> > the leak?
> You appear to be missing a call to Buffer::unmap before
> Sample::dispose?

With Java doing memory management automatically, wouldn't it be
possible to do the unmapping automatically too once the GstMapInfo goes
out of scope?

That's at least how it's handled in the Rust bindings to prevent
situations like the above, and generally make everything more memory-

Sebastian Dröge, Centricular Ltd · https://www.centricular.com

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

More information about the gstreamer-devel mailing list