<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le dim. 20 févr. 2022 16 h 51, Pieter Hulshoff <<a href="mailto:pieter@towel42.nl">pieter@towel42.nl</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Nicolas,<br>
<br>
<br>
Thank you for your insights.<br>
<br>
<br>
On 20-02-2022 21:49, Nicolas Dufresne via gstreamer-devel wrote:<br>
> There was a very similar report recently:<br>
><br>
> <a href="https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/968#note_1252868" rel="noreferrer noreferrer" target="_blank">https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/968#note_1252868</a><br>
><br>
> In that report, this type of leak happened in if the bus was unreffed after its<br>
> owner (playbin or the pipeline). Though, I'm run your code here on 1.20.0, and<br>
> there was no leak after 3000 iterations.<br>
<br>
I'll read up on that report to see if it provides some more clarity.<br>
<br>
Did you reduce the usleep time? The code I sent uses the 100 ms wait <br>
time, in which case I don't see a problem either, but when I reduce that <br>
to 10 ms the issue pops up very very fast.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Oh, I miss counted the zeros. Will retry tomorrow. Can you attach your example to the issue, it's cleaner and smaller.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
> This is normal, gst_element_factory_make() returns a floating reference, and<br>
> gst_bin_add() will acquire the floating reference, which means your code no<br>
> longer owns the object.<br>
<br>
That's good to know. :) That would explain the warnings I got when <br>
uncommenting them then.<br>
<br>
<br>
Kind regards,<br>
<br>
<br>
Pieter Hulshoff<br>
<br>
<br>
</blockquote></div></div></div>