[Live-devel] doEventLoop - problems stopping (and possibly starting)

Frances Flood fflood at eee.strath.ac.uk
Wed Oct 19 15:52:39 PDT 2005


Hi,
 
I recently started trying to use Live555 to form a relay, basing my code
on the testRelay sample program (BasicTaskScheduler,
BasicUsageEnvironment, BasicUDPSource and BasicUDPSink). However, I have
multiple streams, with new streams being added at different points, and
need to be able to start and stop them to change which are playing at a
particular time. I am therefore calling doEventLoop with a flag.
 
The first problem I'm having is that the event loop does not always stop
when I set the flag. Nothing different happens in my code for the times
setting the flag does stop the event loop vs the times when it does not
- exactly the same sequence of events will sometimes manage to stop the
event loop and sometimes not. Has anyone else experienced this, and is
there a fix?
 
The second problem may be related to the BasicUDPSource/FramedSource
rather than the event loop. I have found that when I add a new stream,
if I start playing it initially with the existing streams I can then
stop all the streams and successfully play the last stream that was
added. However, if when the stream is added I stop the existing streams
and try to play the new stream on its own, the data does not reach its
receiver. Investigations so far suggest the problem is that when
BasicUDPSource::incomingPacketHandler1 is called,
isCurrentlyAwaitingData is returning false, although
FramedSource::getNextFrame sets the var (fIsCurrentlyAwaitingData) to
true just before the event loop starts and I can't see any sign of the
var being set to false. If anyone has any suggestions as to what's
happening I'd be very greatful
 
Thanks,
Frances
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20051019/fddabd24/attachment.html


More information about the live-devel mailing list