<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><FONT face=Arial size=2><SPAN
class=363474510-19102005>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=363474510-19102005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=363474510-19102005>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.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=363474510-19102005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=363474510-19102005>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?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=363474510-19102005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=363474510-19102005>The second
problem may be related to the <SPAN
class=783453713-19102005>BasicUDPSource/FramedSource rather than the
</SPAN>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<SPAN class=783453713-19102005>. Investigations
so far suggest the problem is that when BasicUDPSource::incomingPacketHandler1
is called, isCurrentlyAwaitingData is returning false, although
FramedSource::getNextFrame sets the var (<FONT size=2>fIsCurrentlyAwaitingData)
to true just before the event loop starts and </FONT>I can't see any sign of the
var<FONT size=2> being set to false. If anyone has any suggestions as to what's
happening I'd be very greatful</FONT></SPAN></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=363474510-19102005><SPAN
class=783453713-19102005> </SPAN></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=363474510-19102005>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=363474510-19102005>Frances</SPAN></FONT></DIV></DIV></BODY></HTML>