I have a question. When the RTSPServer uses the following code
envir().taskScheduler().scheduleDelayedTask(0,(TaskFunc*)FramedSource::afterGetting,
this);
to put FramedSource::afterGetting in DelayQueue, then the
openRTSP immediately sends a 'TEARDOWN' command to the Server, as we
know, in SingleStep function any delayed event is handled after
socket handler, so I think the RTSPServer will probably handle
'TEARDOWN' first. However handleCmd_TEARDOWN will cause to delete
RTSPClientSession object and also to delete related ***Source,
***RTPSink. So in this situation, can FramedSource::afterGetting be
called normally?
No, because that 'delayed task' will have been removed from the queue
when the object was deleted (see Medium::~Medium()).
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel