[Live-devel] afterGetting(this)

Thomas Christensen tchristensen at nordija.com
Tue Aug 21 07:56:45 PDT 2007


Hi

I'm curious. How did you solve the "request more data" at the bottom?  
You are calling getNextFrame() to solve this - Correct?

Thomas

On 8 Jun 2007, at 15:24, Julian Lamberty wrote:

> Hi!
>
> I would like to know how I can
>
> 1. Request more data from a source (MPEG1or2VideoRTPSource)
> 2. Tell a sink (MPEG4VideoStreamDiscreteFramer) that data is  
> completely delivered to buffer (this should be afterGetting(this),  
> right?)
>
> Right now I have a code structure like:
>
> void Transcoder::doGetNextFrame()
> {
>    fInputSource->getNextFrame(...);
> }
>
> void Transcoder::afterGettingFrame(...)
> {
>    Transcoder* transcoder = (Transcoder*)clientData;
>    transcoder->afterGettingFrame1(...);
> }
>
> void Transcoder::afterGettingFrame1(...)
> {
>    decode_from_inbuf_to_frame
>    if(successfully decoded)
>    {
>       encode_frame_to_fTo
>       if(successfully encoded)
>       {
>           deliver (<- afterGetting(this)?)
>       }
>    }
>    else
>    {
>       request more data (<- I don't know how to do this, if I  
> simply call doGetNextFrame() once again it complains about being  
> read more than once)
>    }
> }
>
> Thanks for your help!
>
> Julian
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel



More information about the live-devel mailing list