<!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 created simple video stream (mpeg4) and I'm using
FileSink as default sink.</FONT></DIV>
<DIV><FONT face=Arial size=2>Everything is fine until I try to end all sessions
and streaming. Everything ends</FONT></DIV>
<DIV><FONT face=Arial size=2>and every subsession and session is closed but
there still apears to be memory leak</FONT></DIV>
<DIV><FONT face=Arial size=2>somwhere.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm opening the stream like this:</FONT></DIV>
<DIV><FONT face=Arial size=2>1. Get discription</FONT></DIV>
<DIV><FONT face=Arial size=2>2. Create new media session</FONT></DIV>
<DIV><FONT face=Arial size=2>3. Init media sub sessions</FONT> </DIV>
<DIV><FONT face=Arial size=2>4. setupMediaSubsession(subsession)</FONT></DIV>
<DIV><FONT face=Arial size=2>5. create file sink</FONT></DIV>
<DIV><FONT face=Arial size=2>6. Setting subsession->sink =
filesink;</FONT></DIV>
<DIV><FONT face=Arial size=2>7.
subsession->sink->startPlauying(subsession->readSource,NULL,subsession);</FONT></DIV>
<DIV><FONT face=Arial size=2>8.
rtspClient->playMediaSession(...);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm ending streams like this:</FONT></DIV>
<DIV><FONT face=Arial
size=2> rtspClient_->teardownMediaSession(*mediaSession_);<BR> <BR> MediaSubsessionIterator
iter(*mediaSession_);<BR> MediaSubsession *subsession =
iter.next();<BR> <BR> <BR> while (subsession !=
NULL)<BR>
{<BR>
subsession->sink->stopPlaying();<BR>
Medium::close(subsession->sink);<BR>
subsession->sink = NULL;<BR>
subsession = iter.next();<BR>
}<BR> <BR> MediaSession::close(mediaSession_);<BR> mediaSession_
= NULL;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Did I miss something?</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>