[Live-devel] stopPlaying - startPlaying on RTP sources
Ross Finlayson
finlayson at live.com
Wed Jun 15 15:52:00 PDT 2005
> 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/>
More information about the live-devel
mailing list