[Live-devel] MediaSink::onSourceClosure

David BERTRAND bidibulle at operamail.com
Wed Nov 2 23:19:46 PST 2005


Hi Ross,

In MediaSink.cpp, I think that onSourceClosure method should cancel any pending task as the stopPlaying method does.

I personally had calls to MultiFramedRTPSInk::sendNext crashing my app each time I closed my RTP Source feeding my sink. I added the following lines in MediaSink::onSourceClosure and my problem was fixed :

...
// Cancel any pending tasks:
sink->envir().taskScheduler().unscheduleDelayedTask(sink->nextTask());
sink->nextTask() = NULL;
...

Hope this makes sense ..

David.


-- 
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 8 at http://www.opera.com

Powered by Outblaze



More information about the live-devel mailing list