<div dir="ltr"><div><div>Hi Tim,<br><br></div>But it appears that all the callback does is inject the EOS event and then exit. It does not appear to wait for the EOS event to reach the next probe (which could happen several seconds later if the element is a queue, for example). So as the blocking probe has now been removed from the element sink it appears to be possible for data to flow again into the element. Or does the EOS event itself prevent that element from accepting any more data?<br><br></div>Best regards,<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 February 2016 at 11:31, Tim Müller <span dir="ltr"><<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, 2016-02-08 at 12:24 +0000, David Jaggard wrote:<br>
<br>
Hi,<br>
<br>
> Referring to the example here:<br>
><br>
> <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/" rel="noreferrer" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/</a><br>
> section-dynamic-pipelines.html<br>
><br>
> in the pad_probe_cb function the blocking probe is removed straight<br>
> away. It seems to me that this would allow data to continue to flow<br>
> into the element following the EOS. That data would then be lost when<br>
> the element is removed.<br>
<br>
Removing the probe inside the probe callback will only have an effect<br>
once you return from the callback, so it doesn't matter if that's done<br>
at the beginning of the function or at the end here, if I read things<br>
correctly.<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888"> -Tim<br>
<br>
--<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</font></span></blockquote></div><br></div>