<div dir="ltr">On 18 April 2013 01:30, Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk" target="_blank">t.i.m@zen.co.uk</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On Wed, 2013-04-17 at 23:46 -0700, Henner Zeller wrote:<br>
<br>
Hi,<br>
<div class="im"><br>
> Did any of the developers had a chance to take a look ? I might want<br>
> to investigate the reasons next weekend, but it might be helpful to<br>
> have some rough plan of action.<br>
><br>
> This is essentially a regression from 0.10: gapless playing of<br>
> non-file URIs used to work with the suggested about-to-finish<br>
> callback, but doesn't with 1.0.<br>
> (but in 0.10 it was leaking threads...)<br>
<br>
</div>It sounds like a bug. Please file a bug report in bugzilla:<br>
<br>
 <a href="http://gstreamer.freedesktop.org/bugs/" target="_blank">http://gstreamer.freedesktop.org/bugs/</a></blockquote><div><br></div><div style>Thanks, filed</div><div style> <a href="https://bugzilla.gnome.org/show_bug.cgi?id=698306">https://bugzilla.gnome.org/show_bug.cgi?id=698306</a></div>
<div style><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
<br>
I don't think there's much you can do wrong in your sample app (though I<br>
have not looked at it).<br>
<br>
Cheers<br>
 -Tim<br>
<div><div class="h5"><br>
><br>
> On 15 April 2013 23:13, Henner Zeller <<a href="mailto:h.zeller@acm.org">h.zeller@acm.org</a>> wrote:<br>
>         Hi,<br>
>         I am maintainer of gmrender-resurrect [1], a UPnP renderer<br>
>         (forked from the dormant 'gmrender' project). It is using<br>
>         gstreamer as backend.<br>
><br>
><br>
>         Using the gstreamer "playbin" feature to set the next URI in<br>
>         an "about-to-finish" callback, this UPnP renderer successfully<br>
>         implements gapless playback, alas, not without trouble.<br>
><br>
><br>
>         It turns out, that playing gapless with inputs from HTTP-URLs<br>
>         is leaking threads, up to the point that things stop working.<br>
>         This is with gstreamer-0.10. With gstreamer-1.0 setting HTTP<br>
>         URLs in the "about-to-finish" callback does not seem to work<br>
>         at all.<br>
><br>
><br>
>         This _does_ work with local file-URIs, so I believe this has<br>
>         to do with different handling of network resources vs. local<br>
>         resources, i.e. buffering, probably a separate thread handling<br>
>         the network input (and it would explain why this hasn't been<br>
>         noticed before, because the usual use-case is to read from<br>
>         files).<br>
><br>
><br>
>         To reproduce, I created simplified test-code including<br>
>         Makefile and test-sound in this public git repository that<br>
>         illustrates the behavior:<br>
><br>
><br>
>           <a href="https://github.com/hzeller/gstreamer-gapless-test" target="_blank">https://github.com/hzeller/gstreamer-gapless-test</a><br>
><br>
><br>
>         All it does is to re-set the original URI back once the<br>
>         "about-to-finish" callback is called ... and exhibiting the<br>
>         described behavior:<br>
>           - gstreamer-0.1: runs out of threads on gapless playing URIs<br>
>           - gstreamer-1.0: does not handle well having the URI set in<br>
>         about-to-finish callback.<br>
>            - both work with file URIs<br>
><br>
><br>
>         Instructions to reproduce are under<br>
><br>
>         <a href="https://github.com/hzeller/gstreamer-gapless-test/blob/master/README.md" target="_blank">https://github.com/hzeller/gstreamer-gapless-test/blob/master/README.md</a><br>
><br>
><br>
><br>
>         Maybe, this is a usage error, but I suspect it to be a bug. If<br>
>         you can confirm that this _should_ work, then I am happy to<br>
>         file a bug, and probably dig into the code to help working on<br>
>         a fix.<br>
><br>
><br>
>         Thanks,<br>
>           Henner.<br>
><br>
><br>
>         [1] <a href="https://github.com/hzeller/gmrender-resurrect" target="_blank">https://github.com/hzeller/gmrender-resurrect</a><br>
><br>
><br>
</div></div>> _______________________________________________<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" 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" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div></div>