Re: [Live-devel] Implementing FramedSource

2008-04-08 Thread Ken Seo
Hi, Ross, ** Sorry I pressed wrong button and email was sent accidently, please disregard the first email. Thank you for your reply, if "doGetNextFrame()" returns immediately, I'm not quite sure how it would work, the following is my understanding of RTP cycle, RTSPServer - upon start playing -

Re: [Live-devel] Implementing FramedSource

2008-04-08 Thread Ken Seo
Hi, Ross, Thank you for your reply, if "doGetNextFrame()" returns immediately, I'm not quite sure how it would work, the following is my understanding of RTP cycle, RTSPServer - upon start playing - calls GetNextFrame() -> calls doGetNextFrame() -> calls afterGetting() -> sends packets all that

Re: [Live-devel] Implementing FramedSource

2008-04-04 Thread Ross Finlayson
>I'm trying to implement a FramedSource which will get next frames from >a Queue. From my digging so far, "doGetNextFrame()" should be blocking >until the next frame is available No, it should *not* be blocking until the next frame is available, because if you block, you'll be starving out any ot

[Live-devel] Implementing FramedSource

2008-04-04 Thread Ken Seo
Hi, I'm trying to implement a FramedSource which will get next frames from a Queue. From my digging so far, "doGetNextFrame()" should be blocking until the next frame is available, so my current implementation looks like, void QueueSource::doGetNextFrame() { //CAutoLock cAutolock(&m_Lock)