[Live-devel] live object delete sequence

Stas Desyatnlkov stas at tech-mer.com
Mon Aug 24 04:20:12 PDT 2009


I did this:
     rtp_sock_ = new Groupsock(*env_, destinationAddress, rtpPort, 10);
               rtcp_sock_ = new Groupsock(*env_, destinationAddress, rtcpPort, 10);
               vsink_ = SimpleRTPSink::createNew(*env_, rtp_sock_, 33, 90000,
                                             "video", "mp2t", 1, True, False /*no 'M' bit*/);
               RTCPInstance* rtcp = RTCPInstance::createNew(*env_, rtcp_sock_,
                              estimatedSessionBandwidth, CNAME, vsink_, NULL, false);

So in the above example do I have to delete rtp_sock & rtcp_sock? Can I safely delete rtcp pointer after the server is stopped?

From: live-devel-bounces at ns.live555.com [mailto:live-devel-bounces at ns.live555.com] On Behalf Of Yedidia Amit
Sent: Monday, August 24, 2009 12:47 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] live object delete sequence

Thats depends on what you wrote...

if you creadted RTSP server you shuld delete it.
if there are active sessions in your server you should delete them before deleting the server etc..

________________________________
From: live-devel-bounces at ns.live555.com [mailto:live-devel-bounces at ns.live555.com] On Behalf Of Stas Desyatnlkov
Sent: Monday, August 24, 2009 12:26 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] live object delete sequence
That is what I'm doing.
Will the rest of the objects get disposed too?

From: live-devel-bounces at ns.live555.com [mailto:live-devel-bounces at ns.live555.com] On Behalf Of Yedidia Amit
Sent: Monday, August 24, 2009 11:57 AM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] live object delete sequence


you should call reclaim() on the usageEnviroment, and then delete the task schedualer.

pEnv->reclaim();

delete pTaskSchedualer;



Amit Yedidia



________________________________
From: live-devel-bounces at ns.live555.com [mailto:live-devel-bounces at ns.live555.com] On Behalf Of Stas Desyatnlkov
Sent: Monday, August 24, 2009 11:45 AM
To: live-devel at ns.live555.com
Subject: [Live-devel] live object delete sequence
Hi,

In my app I have to create and delete live objects (scheduler, usage environment, rtp sink, rtcp, video source, stremer...) multiple times.
What should be the proper delete sequence for the above? Does deleting the usage environment also destroys scheduler?
Do I have to delete RTP and RTCP sockets separately?




sensitive information.  Unauthorized interception of this e-mail may constitute
a violation of law. If you are not the intended recipient, you are hereby
notified that any review, dissemination, distribution or duplication of this
communication is strictly prohibited. You are also asked to contact the sender
by reply email and immediately destroy all copies of the original message.

sensitive information.  Unauthorized interception of this e-mail may constitute
a violation of law. If you are not the intended recipient, you are hereby
notified that any review, dissemination, distribution or duplication of this
communication is strictly prohibited. You are also asked to contact the sender
by reply email and immediately destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090824/9d794920/attachment-0001.html>


More information about the live-devel mailing list