<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [Live-devel] Problem in sending PAUSE and then
PLAY re</title></head><body>
<blockquote type="cite" cite><font face="Arial" size="-1">We are using
openRTSP Client to receive mpeg2 streams. When we call PAUSE and then
PLAY request during streaming then</font></blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">&nbsp;we
observed function</font><font face="Arial"><i>
getResponse1(</i>)<font size="-1"> is getting called from two places
simultaneously</font></font></blockquote>
<div><br></div>
<div>No. Remember that the code is single-threaded.&nbsp; It is not
possible for &quot;getResponse1()&quot; - or any other function - to
be called from two places 'simultaneously'.</div>
<div><br></div>
<div>What I suspect is happening is that you have requested
RTP-over-TCP - i.e., using the &quot;-t&quot; command-line option to
&quot;openRTSP&quot;.&nbsp; There is currently a known bug in the code
that - iff you have requested RTP-over-TCP - any response to a RTSP
command - after the initial &quot;PLAY&quot; command(s) - is not read
by the RTSP client code.&nbsp; Therefore, iff you have requested
RTP-over-TCP, then you currently can't do a RTSP &quot;PAUSE&quot;
(because you won't then be able to send a subsequent &quot;PLAY&quot;
to restart the stream).</div>
<div><br></div>
<div>(With regular, RTP-over-UDP, streaming, there are no known
problems with sending &quot;PAUSE&quot; (or other) commands during
streaming.)</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>