[Live-devel] Re: Re:Re: It seems that the it will use more and more memory?memory leaks? (Ross Finlayson)

meibo at sunplus.com.cn meibo at sunplus.com.cn
Thu Jun 24 10:44:15 PDT 2004


>Well then, when you exit this code (and your application), all of the
>memory allocated by the "openRTSP" code will go away.  In other words, if
>your application executes the "openRTSP" code only once, then the memory
>allocated can't possible increase over time, can it?

>Yes.During the openRTSP loop(I mean before the openRTSP exits),the memory
>allocated
>will increase.Did anybody have tested the openRTSP in a small memory(like
>32M) environment?

Sorry,I made a mistake.Now I think the problem is that I made the MPGE
program file
'play time per frame is a little short.

I change
MyMpge1Or2FileSource::createNew(envir(), fileName,188,1000);
to
MyMpege1Or2FileSource::createNew(envir(), fileName,188,1100);
then it work ok!:-)

So at the beginning the client can play smoothly,and the more coming data
will be buffered.
But the play action is always a little slowly than the coming of data.So
more buffer is required
to save the data that comes earlier.So the memory allocated  increased.But
we did not buffere the
data.Does liveMedia do this?Or low network layer does this?

I think  it's  diffult to determine play Time Per Frame?Is there any class
of liveMedia can do this?
or Is there any way to calculate the playtime of the mpeg1 or mpeg2 program
file?And most media player
can do this.


Best Regards,

E-mail: meibo at sunplus.com.cn



More information about the live-devel mailing list