[Live-devel] RTSP client 'openURL()' while event loop is already running

Ross Finlayson finlayson at live555.com
Thu Aug 7 08:23:48 PDT 2014


> Now I would like to add the ability to connect() and disconnect() streams while the event loop is already running, i.e. startAll() has been called. For this case I have already set up an EventTriggerId to call into the running event loop and a handler which triggers a deferred handling of openURL(). This works fine initially, but the newly connected streams always stall completely after a short time (few seconds or just few frames). The streams connected before startAll() continue to play just fine.
> 
> What could be going wrong here? Or is there any general issue that permits starting new sessions from a running event loop?

No.  It shouldn't matter whether you call "openURL()" from outside or inside the event loop (provided that - if you called it from outside the event loop - you enter the event loop next, as we do in the "testRTSPClient" code).

I suspect that there's some bug in your code - having nothing to do with the event loop.  I'd test this by (in order):
1/ Starting just a single stream, starting outside the event loop (as in the current "testRTSPClient" code)
2/ Starting just a single stream, starting inside the event loop
3/ Starting two streams, both starting outside the event loop (as in the current "testRTSPClient" code)
4/ Starting two streams, both starting inside the event loop

This will likely help you track down your bug.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20140807/4d6f4b04/attachment.html>


More information about the live-devel mailing list