<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thanks for the quick response.<div class=""><br class=""></div><div class="">I was shrinking the sequence. This is what is sufficient to cause the leak:</div><div class=""><br class=""></div><div class=""><pre class="highlight code" lang="plaintext"><span id="LC1" class="line" lang="plaintext">if (name.startsWith("video")) {</span>
<span id="LC2" class="line" lang="plaintext">            Element queue = ElementFactory.make("queue", "my-videoqueue");</span>
<span id="LC3" class="line" lang="plaintext">            Element videoconvert = ElementFactory.make("videoconvert", "my-videoconvert");</span>
<span id="LC4" class="line" lang="plaintext">            AppSink sink = (AppSink) ElementFactory.make("appsink", "my-appsink");</span>
<span id="LC5" class="line" lang="plaintext"></span>
<span id="LC6" class="line" lang="plaintext">            sink.set("emit-signals", true);</span>
<span id="LC7" class="line" lang="plaintext"></span>
<span id="LC8" class="line" lang="plaintext">            pipe.addMany(queue, videoconvert, sink);</span>
<span id="LC9" class="line" lang="plaintext">            queue.syncStateWithParent();</span>
<span id="LC10" class="line" lang="plaintext"></span>
<span id="LC11" class="line" lang="plaintext">            videoconvert.syncStateWithParent();</span>
<span id="LC12" class="line" lang="plaintext">            sink.syncStateWithParent();</span>
<span id="LC13" class="line" lang="plaintext">            <a href="http://pad.link" class="">pad.link</a>(queue.getStaticPad("sink"));</span>
<span id="LC14" class="line" lang="plaintext">            <a href="http://queue.link" class="">queue.link</a>(videoconvert);</span>
<span id="LC15" class="line" lang="plaintext">            <a href="http://videoconvert.link" class="">videoconvert.link</a>(sink);</span>
<span id="LC16" class="line" lang="plaintext">}</span>
</pre><div class=""><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">Am 08.07.2019 um 12:04 schrieb Neil C Smith <<a href="mailto:neilcsmith.net@googlemail.com" class="">neilcsmith.net@googlemail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><span style="caret-color: rgb(0, 0, 0); font-family: TrebuchetMS; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">You appear to be missing a call to Buffer::unmap before Sample::dispose?</span><br style="caret-color: rgb(0, 0, 0); font-family: TrebuchetMS; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""></div></blockquote></div><br class=""></div></body></html>