Re: [Live-devel] What to do if data not coming while streaming from memory

2014-08-01 Thread Ross Finlayson
> Maybe the speed of streaming frames is much faster than the speed of > generating frames. So when function “doGetNextFrame()” is called, no frame is > put into memory. If I use sleep() to wait for frames, thread blocks and > streaming AAC frames slowns down. No, you shouldn't call "sleep()" a

[Live-devel] What to do if data not coming while streaming from memory

2014-07-31 Thread Xuan
Hi, H.264 and AAC frames are generated and put into 2 CLists in memory. Two classes are implemented to get frames from memory, live this: void ADTSRealTimeStreamSource::doGetNextFrame() { if(fAVPktList->empty()){ //if no frames in CList, sleep until CList is no