<div dir="ltr">Hi Tim,<div><br></div><div>I tried that but the EOS message seems to never arrive.</div><div>I will use the --gst-debug-level=4 for now and will check if it's fixed on newer versions.</div><div><br></div><div>cheers,</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 15, 2015 at 3:20 PM, 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, 2015-09-15 at 13:27 +0200, Thibault Jochem wrote:<br>
<br>
Hi Thibault,<br>
<span class=""><br>
> I'm having an issue where I can't have gstreamer to send rtsp teardown<br>
> when I'm using an appsink to grab pictures from the stream.<br>
><br>
><br>
> I wrote a small test program, trying several sinks, and everythings<br>
> seems Ok using d3dvideosink, but as soon as I plug a fakesink or an<br>
> appsink, the rtsp socket seems to be closed before the session is<br>
> cleanly closed. This is how I close the stream.<br>
><br>
><br>
> gst_element_send_event(pipeline, gst_event_new_eos());<br>
> gst_element_set_state (pipeline, GST_STATE_NULL);<br>
> gst_object_unref (pipeline);<br>
> gst_object_unref (bus);<br>
><br>
><br>
> Setting the gst-debug-level to 4 seems to work around the problem so<br>
> it make me think of a race condition.<br>
><br>
><br>
> Is it a bug, or am I missing something to cleanly close the pipeline ?<br>
<br>
</span>I don't know if it helps, but sending the EOS event and then immediately<br>
setting state to NULL may not be what you want. You'd have to wait for<br>
the EOS event to make it through the pipeline and arrive at all the<br>
sinks, which will happen asynchronously. So perhaps you should wait for<br>
an EOS message on the pipeline bus before shutting down the pipeline.<br>
(Note that there may be a bug in rtpbin or rtpjitterbuffer that it<br>
doesn't forward the eos event properly, I'm not sure if that has been<br>
fixed or not right now).<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>
Join us at the GStreamer Conference: 8-9 October 2015 in Dublin, Ireland<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="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Thibault Jochem<br><a href="http://www.laboiteaselfie.com" target="_blank">www.laboiteaselfie.com</a></div></div></div></div></div>
</div>