Re: [Live-devel] Proper destruction of subsessions

2009-07-20 Thread Patrick White
Matt & I went though this issue a while back for live streams. It's probably similar if you're trying to shut down a file-based stream before it gets to its end... To force a session to end before the client requests a teardown, we ended up deleting the RTSPClientSession instance out from und

Re: [Live-devel] Proper destruction of subsessions

2009-07-16 Thread Jerry Johns
I am aware of the watch variable method and the Medium::close(), but closing the ServerMediaSession, or the Subsession does not entail sending a BYE to the connected client - the only way I found till now to send a BYE is to do a handleClosure() from within my framer source when it detects a shutdo

Re: [Live-devel] Proper destruction of subsessions

2009-07-16 Thread Rawling, Stuart
I believe the best thing to do is to run your doEventLoop with a watch variable. Then when you wish to exit and cleanup, set the watch variable, which will cause the doEventLoop call to return. At this point you will be able to clean up all of the session stuff (hint: use Medium::close()). On

[Live-devel] Proper destruction of subsessions

2009-07-16 Thread Jerry Johns
I've searched in the list archive, but couldn't find something regarding this - I currently have LiveMedia running on its own thread with the doEventLoop() the last instruction before it goes off into its own world; Ultimately, I would like to have this thread return gracefully by first invoking a