<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">Le 16 oct. 2017 3:09 PM, "Liu Xin" <<a href="mailto:liuxin8166@hotmail.com">liuxin8166@hotmail.com</a>> a écrit :<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-8004722221955041975divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>hi, </p>
<p><br>
</p>
<p>I'm writing a pipeline with dynamic branch. While removing the branch, I ran into the case in which a queue element will be gst_bin_removed in the probe callback to the queue's peering tee element. My question is, what if there's frame data still hanging
in the queue element? Will this lead to a memory leak?</p></div></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">It's a requirement to set the element to NULL state before you unref it. The buffers will be discarded and returned to their appropriate pool and/or allocator during this state transition.</div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div id="m_-8004722221955041975divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p><br>
</p>
<p>Please share your expertise.</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Xin</p>
</div>
</div>
<br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div></div></div>