<div dir="ltr">Hello,<div><br></div><div>I tried again with GStreamer 1.6.0</div><div>Bad chance, this bug wasn't fix with the >1600 fixes from thre release :'(</div><div><br></div><div>Should I file a bug specifically for RTSP use in bugzilla ?</div><div><br></div><div>cheers,</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 15, 2015 at 5:35 PM, Tim-Philipp Müller <span dir="ltr"><<a href="mailto:tim@centricular.net" target="_blank">tim@centricular.net</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 17:15 +0200, Thibault Jochem wrote:<br>
<br>
Hi,<br>
<span class=""><br>
> I tried that but the EOS message seems to never arrive.<br>
> I will use the --gst-debug-level=4 for now and will check if it's<br>
> fixed on newer versions.<br>
<br>
</span>Might be related to this bug:<br>
<a href="https://bugzilla.gnome.org/show_bug.cgi?id=706387" rel="noreferrer" target="_blank">https://bugzilla.gnome.org/show_bug.cgi?id=706387</a><br>
<div class="HOEnZb"><div class="h5">><br>
> cheers,<br>
><br>
> On Tue, Sep 15, 2015 at 3:20 PM, Tim Müller <<a href="mailto:tim@centricular.com">tim@centricular.com</a>><br>
> wrote:<br>
>         On Tue, 2015-09-15 at 13:27 +0200, Thibault Jochem wrote:<br>
><br>
>         Hi Thibault,<br>
><br>
>         > I'm having an issue where I can't have gstreamer to send<br>
>         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<br>
>         everythings<br>
>         > seems Ok using d3dvideosink, but as soon as I plug a<br>
>         fakesink or an<br>
>         > appsink, the rtsp socket seems to be closed before the<br>
>         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<br>
>         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<br>
>         pipeline ?<br>
><br>
>         I don't know if it helps, but sending the EOS event and then<br>
>         immediately<br>
>         setting state to NULL may not be what you want. You'd have to<br>
>         wait for<br>
>         the EOS event to make it through the pipeline and arrive at<br>
>         all the<br>
>         sinks, which will happen asynchronously. So perhaps you should<br>
>         wait for<br>
>         an EOS message on the pipeline bus before shutting down the<br>
>         pipeline.<br>
>         (Note that there may be a bug in rtpbin or rtpjitterbuffer<br>
>         that it<br>
>         doesn't forward the eos event properly, I'm not sure if that<br>
>         has been<br>
>         fixed or not right now).<br>
><br>
>         Cheers<br>
>          -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<br>
>         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>
><br>
><br>
><br>
><br>
> --<br>
> Thibault Jochem<br>
> <a href="http://www.laboiteaselfie.com" rel="noreferrer" target="_blank">www.laboiteaselfie.com</a><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>
<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>
</div></div></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>