Thanx Amit, just what I thought.
It's a pity the samples does not demo the full clean up code for the objects 
used.

From: [email protected] 
[mailto:[email protected]] On Behalf Of Yedidia Amit
Sent: Monday, August 24, 2009 2:27 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] live object delete sequence

the answer is yes for both ...

________________________________
From: [email protected] 
[mailto:[email protected]] On Behalf Of Stas Desyatnlkov
Sent: Monday, August 24, 2009 2:20 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] live object delete sequence
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: [email protected] 
[mailto:[email protected]] 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: [email protected] 
[mailto:[email protected]] 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: [email protected] 
[mailto:[email protected]] 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: [email protected] 
[mailto:[email protected]] On Behalf Of Stas Desyatnlkov
Sent: Monday, August 24, 2009 11:45 AM
To: [email protected]
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.

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.
_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to