[Live-devel] stopPlaying - startPlaying on RTP sources

David BERTRAND bidibulle at operamail.com
Wed Jun 15 15:33:10 PDT 2005


Hi all,

I try to infinitely stop and start a RTP sink while changing the RTP source each time (between two sources). Note that I dont close my RTP sources.
My problem is that my application exits after the first change of source. The message I get is "FramedSource ...::getNextFrame(): attempting to read more than once at the same time!" I think that the problem is that in function stopGettingFrames of FramedSource class, the fafterGettingFunc and fafterGettingClientData fields should be set to NULL, to avoid subsequent call-backs to the RTPSink when new data arrive from the network. Anyway, when adding those two lines in stopGettingFrames function, my problem dissapears :
        
        fAfterGettingFunc=NULL;
	fAfterGettingClientData=NULL; 

Is it the correct way to fix my problem ?

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