[Live-devel] stackoverflow

Ross Finlayson finlayson at live555.com
Fri Dec 16 14:13:13 PST 2011


This can happen, though only if both your input source and your output sink (and any filters in-between) are synchronous.  E.g, if your input source is a file on Windoze (where file reading has to be synchronous), and your output sink is also a file.  (It should *not* happen if your output sink is a "RTPSink".)

The way to overcome this is to find one place in your code (your own code, not the supplied source code!) that calls
	afterGetting(this);
and replace this with:
	envir().taskScheduler().scheduleDelayedTask(0, (TaskFunc*)afterGetting, this);
so that you'll return to the event loop rather than getting into a recursive call.


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/20111216/f1d7c300/attachment.html>


More information about the live-devel mailing list