<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Problem in sending PAUSE and then PLAY request in openrtsp</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi all,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">We are using openRTSP Client to receive mpeg2 streams. When we call PAUSE and then PLAY request during streaming then<B> </B></FONT>
<BR><FONT SIZE=2 FACE="Arial"> we observed</FONT><B><FONT SIZE=2 FACE="Arial"></FONT></B> <FONT SIZE=2 FACE="Arial">function<I></I></FONT><I> <FONT FACE="Arial">getResponse1(</FONT></I><FONT FACE="Arial">) </FONT><FONT SIZE=2 FACE="Arial">is getting called from two places simultaneously i.e.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">1 ) from inside getResponse("PAUSE", bytesRead, responseCode, firstLine, nextLineStart) in pauseMediaSession() in RTSPClient.cpp</FONT></P>
<P><FONT SIZE=2 FACE="Arial">2) bytesRead = getResponse1(readBuf, fResponseBufferSize) in incomingRequestHandler1() in RTSPClient.cpp.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Hence we cannot play the stream again after pausing because the readSocket call is blocking in getResponse1() function.</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">unsigned bytesReadNow = readSocket(envir(), fInputSocketNum, (unsigned char*)(responseBuffer+bytesRead), 1, fromAddress);</FONT></P>
<BR>
<P><FONT SIZE=2 FACE="Arial">Please provide your feedback why its happening or we need to call the pauseMediaSession() function from some where else.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thanks and Regards</FONT>
<BR><FONT SIZE=2 FACE="Arial">Nitin </FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML>