<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><pre> if (rtspClients[i] != NULL)</pre>
<pre> {</pre>
<pre> *env << "shutting down " << *rtspClients[i] << "\n";</pre>
<pre> shutdownStream(rtspClients[i]);</pre>
<pre> }</pre>
<pre> rtspClients[i] = NULL;</pre>
<pre> }</pre></div></blockquote><div>Mike,</div><div> Could you send your shutdownStream()? Perhaps you're not tearing down the MediaSession? Also are you doing a Medium::close(rtspClients[i]) anywhere?</div>
<div><br></div><div> My program successfully restarts RTSP streams by sending TeardownRequests and closing the rtsp client. (Closing the client turns out to be important, didn't check why, but it seems like it maintains some contextual information somewhere.)</div>
<div><br></div><div>Constantin</div></div>