[Live-devel] Recursion in continuePlaying() -> stack overflow

Ross Finlayson finlayson at live555.com
Wed Nov 5 13:56:31 PST 2008


Because this is your own code (& you have a "@yahoo.com" email 
address :-), I can't help you much.  However, I suspect you can fix 
your problem by replacing your call to
	FramedSource::afterGetting(this):
or just
	afterGetting(this);
with:
	nextTask() = envir().taskScheduler().scheduleDelayedTask(0,
                         (TaskFunc*)FramedSource::afterGetting, this);
	return;

This will cause the code to return to the event loop - ending the recursion.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list