I created simple video stream (mpeg4) and I'm using FileSink as default sink.
Everything is fine until I try to end all sessions and streaming.
Everything ends
and every subsession and session is closed but there still apears to
be memory leak
somwhere.
I'm opening the stream like this:
1. Get discription
2. Create new media session
3. Init media sub sessions
4. setupMediaSubsession(subsession)
5. create file sink
6. Setting subsession->sink = filesink;
7. subsession->sink->startPlauying(subsession->readSource,NULL,subsession);
8. rtspClient->playMediaSession(...);
I'm ending streams like this:
rtspClient_->teardownMediaSession(*mediaSession_);
MediaSubsessionIterator iter(*mediaSession_);
MediaSubsession *subsession = iter.next();
while (subsession != NULL)
{
subsession->sink->stopPlaying();
Medium::close(subsession->sink);
subsession->sink = NULL;
subsession = iter.next();
}
MediaSession::close(mediaSession_);
mediaSession_ = NULL;
Did I miss something?
You should also be closing (deleting) the "RTSPClient" object. Plus,
of course, the "UsageEnvironment" and "TaskScheduler" objects, if
you're not planning on using them again. (In that case, though, you
might as well just exit() the process.)
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel