[Live-devel] stopPlaying - startPlaying on RTP sources

David BERTRAND bidibulle at operamail.com
Thu Jun 16 10:58:19 PDT 2005


Thanks Ross for your reply. I was using an older version of LiveMedia library which doesn't have the doStopGettingFrames() function yet. Stopping the network reading is indeed the best solution.

David  
----- Original Message -----
From: "Ross Finlayson" <finlayson at live.com>
To: "LIVE.COM Streaming Media - development & use" <live-devel at ns.live.com>
Subject: Re: [Live-devel] stopPlaying - startPlaying on RTP sources
Date: Wed, 15 Jun 2005 14:52:00 -0700

> 
> 
> >  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.
> 
> No, the call to "stopGettingFrames()" (from 
> "MediaSink::stopPlaying()") causes 
> "MultiFramedRTPSource::doStopGettingFrames()" to be called, and 
> this calls
>          fRTPInterface.stopNetworkReading();
> which should stop any further network reading.  (I assume that 
> you're using a version of the code more recent than 2005.04.26).
> 
> The "attempting to read more than once at the same time" error 
> message means just that: Your code is calling "getNextFrame()" on 
> the same object a second time, before the first call has been fully 
> taken care of.  You need to fix this.
> 
> > Anyway, when adding those two lines in stopGettingFrames 
> > function, my problem dissapears :
> 
> Adding those two lines won't hurt, but at best they are just 
> masking the real problem with your code.
> 
> 
> 	Ross Finlayson
> 	LIVE.COM
> 	<http://www.live.com/>
> 
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live.com
> http://lists.live.com/mailman/listinfo/live-devel


-- 
_______________________________________________
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