<div dir="ltr">Thank you. I was just missing the fact that EOS blocks the pad from receiving more data. <br></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 February 2016 at 15:42, 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 Tue, 2016-02-09 at 15:17 +0000, David Jaggard wrote:<br>
<br>
Hi David,<br>
<br>
> But it appears that all the callback does is inject the EOS event and<br>
> then exit. It does not appear to wait for the EOS event to reach the<br>
> next probe (which could happen several seconds later if the element<br>
> is a queue, for example). So as the blocking probe has now been<br>
> removed from the element sink it appears to be possible for data to<br>
> flow again into the element. Or does the EOS event itself prevent<br>
> that element from accepting any more data?<br>
<br>
That's right, when you push an EOS event on a pad, the pad will be<br>
flagged as EOS and when someone tries to push more data to it, they'll<br>
get a GST_FLOW_EOS flow return and upstream will stop streaming in<br>
response to that.<br>
<br>
The application will have to wait for an EOS message on the bus to make<br>
sure the EOS has filtered through to the sink and everything has<br>
finished up as it should.<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>