[Live-devel] RTSPClient::fBaseURL and RTSPClient::sessionURL()

Ross Finlayson finlayson at live555.com
Fri Dec 3 02:24:12 PST 2010


>Using separate RTSPClient objects - that's exacty I'm going to do. 
>Ok, seems I have found a solution: RTSPClient class is derived from 
>Medium class and there is Medium::name() available which returns 
>unique value.

Alternatively, you could subclass "RTSPClient", and store your 
information in fields in the subclass.


>  I have another question. Do I need to delete RTSPClient objects 
>myself (as well as UsageEnvironment and TaskScheduler)?

Yes, unless, of course, you will be exiting the application anyway 
(as "openRTSP" does when it finishes).

>  The openRTSP application does not show how to do this properly.

In general, you should reclaim objects in the reverse order that they 
were created.  So, to reclaim your "RTSPClient", "UsageEnvironment" 
and "TashScheduler" objects, do the following (after reclaiming other 
objects):

Medium::close(rtspClient);
env->reclaim();
delete scheduler;

(Yes, this is all really ugly and inconsistent.  Someday it might get 
improved...)
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20101203/92bb9bbd/attachment.html>


More information about the live-devel mailing list