<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I sometimes receive folowing errors when closing
session.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><EM>RTSP response was truncated<BR>RTSP response
was truncated<BR>We received a response not ending with
<CR><LF><CR><LF><BR>Failed to read response:<BR>We
received a response not ending with
<CR><LF><CR><LF><BR>Failed to read response:<BR>ERROR
Closing session</EM></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Note that we are using custom made streaming server
based on live555 code.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Receiving client ends the session in this
way:</FONT></DIV>
<DIV><FONT face=Arial size=2>- User press "Stop" button.</FONT></DIV>
<DIV><FONT face=Arial size=2>- customRTSPClient executes Shutdown()</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Shutdown code:</FONT></DIV>
<DIV><FONT face=Arial size=2><EM></EM></FONT> </DIV>
<DIV><FONT face=Arial size=2><EM> Medium::close(aviOut); //
avitOut is AviFileSink object</EM></FONT></DIV>
<DIV><FONT face=Arial size=2><EM> MediaSubsessionIterator
iter(*session);<BR> MediaSubsession* subsession;<BR> while
((subsession = iter.next()) != NULL)
<BR>
{<BR>
Medium::close(subsession->sink);<BR>
subsession->sink = NULL;<BR>
}</EM></FONT></DIV>
<DIV><FONT face=Arial size=2><EM></EM></FONT> </DIV>
<DIV><FONT face=Arial
size=2><EM> pThisRTSPClient->teardownMediaSession(*session);
//pThisRTSPClient is RTSPClient object<BR> <BR> </EM></FONT><FONT
face=Arial
size=2><EM>Medium::close(session);<BR> Medium::close(pThisMediaClient);</EM></FONT></DIV>
<DIV><EM><FONT face=Arial size=2></FONT></EM> </DIV>
<DIV><FONT face=Arial size=2>After<FONT color=#000000 size=2>PlayingFunc() is
empty. (It's difficult on to merge static functions with object
code).</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial size=2>Why does this happens, and does it have any
infuense on memory dealocation </FONT></DIV>
<DIV><FONT face=Arial size=2>of the session?</FONT></DIV></DIV>
<DIV><FONT face=Arial size=2>Is this the right way to end session? Or this
*must* be done in afterPlayingFunc()?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT color=#000000
size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT color=#000000
size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT color=#000000 size=2>Thanks.</DIV>
<P> </P></FONT></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><BR />
<BR />
<HR />
ELMA Kurtalj d.o.o. (ELMA Kurtalj ltd.)<BR />
Vitezićeva 1a, 10000 Zagreb, Hrvatska (Viteziceva 1a, 10000 Zagreb, Croatia)<BR />
Tel: 01/3035555, Faks: 01/3035599 (Tel: ++385-1-3035555, Fax: ++385-1-3035599 )<BR />
<BR />
Www:<BR />
www.elma.hr; shop.elma.hr<BR />
<BR />
E-mail:<BR />
elma@elma.hr (elma@elma.hr)<BR />
pitanje@elma.hr (questions@elma.hr)<BR />
primjedbe@elma.hr (complaints@elma.hr)<BR />
prodaja@elma.hr (sales@elma.hr)<BR />
servis@elma.hr (servicing@elma.hr)<BR />
shop@elma.hr (shop@elma.hr)<BR />
skladiste@elma.hr (warehouse@elma.hr)<BR />
</BODY></HTML>