[Live-devel] shutdown rtsp client subclass without stopping program.

Jeff Shanab jshanab at smartwire.com
Wed Dec 7 09:41:11 PST 2011


That is exactly what I am trying. :(

From: live-devel-bounces at ns.live555.com [mailto:live-devel-bounces at ns.live555.com] On Behalf Of Ross Finlayson
Sent: Wednesday, December 07, 2011 10:58 AM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] shutdown rtsp client subclass without stopping program.

I am trying to shutdown my subclassed rtsp client and because of the migration to async, I am having a hard time avoiding access violations.

It seems like the object destroys when I call Media::close and then it tries to handle an incoming response or data and then crashes when there is no RequestQueue. So fHead is invlaid and fHead->next crashes.

I must not be doing this correct. I am following the shutdown logic in the OpenRTSP, but it uses exit() so it is a bit differnet.

The code in the "continueAfterTEARDOWN()" function is what you should be doing, I think; just leave off the call to "exit()" at the end.  If you use this code (after you've done a RTSP "TEARDOWN"), then I don't see how you could still be receiving any incoming packets for that session.
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/20111207/f41f542a/attachment.html>


More information about the live-devel mailing list