[Live-devel] Segmentation fault in DelayQueue::removeEntry(DelayQueueEntry*)

Ross Finlayson finlayson at live555.com
Fri Nov 4 08:05:56 PDT 2011


> Is this a wrong way to maintain the connection to the camera? Could this be the cause of the crash?

No, I don't think so.  What you're doing looks OK.  Just make sure, though, that you stop the periodic calls to timeout() if/when the session ends.  (You can do this using "TaskScheduler::unscheduleDelayedTask()".)  If you try to call your "RtspConnection::timeout()" after "client" and/or "session" have been deleted, then bad things will definitely happen.


Also (although this is not the cause of your problem) you should really be using the asynchronous "RTSPClient" interface rather than the old synchronous interface.  E.g., you should be calling "sendGetParameterCommand()" instead of "getMediaSessionParameter()", and "sendOptionsCommand()" instead of "sendOptionsCmd()".  Etc.  The synchronous "RTSPClient" interface is now deprecated, and will likely be removed completely sometime in the future.


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/20111104/b0fcd207/attachment.html>


More information about the live-devel mailing list