[Live-devel] It seems that the it will use more and more
memory?memory leaks?
Ross Finlayson
finlayson at live.com
Sun Jun 20 22:55:17 PDT 2004
Note that "openRTSP" was written to be a stand-alone application that is
run once, with a single "rtsp://" URL. It was not intended to be code that
people would embed within some other, long-running application. It's
possible, therefore, that not all objects that "openRTSP" allocates end up
getting explicitly deleted (using "Medium::close()") before the program
exits. So, if you're running the original "openRTSP" code within a loop,
then I suggest checking that all objects that were created within the loop
get deleted before the next iteration of the loop.
However, if all allocated object get deleted, then there should be no
memory leaks in the LIVE.COM code.
In general, if you are developing your own RTSP client application, then
the "openRTSP" code is not the best model, because it has so many 'bells
and whistles' (features). A better model, IMHO, is the LIVE.COM RTSP
client support for "mplayer": <http://www.live.com/mplayer/>, or VLC:
<http://www.videolan.org/vlc/>
Ross Finlayson
LIVE.COM
<http://www.live.com/>
More information about the live-devel
mailing list