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

Ross Finlayson finlayson at live555.com
Wed Dec 7 08:57:53 PST 2011


> 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/5780c4d1/attachment.html>


More information about the live-devel mailing list