Re: [Live-devel] Custom memory buffer source

2016-09-15 Thread Ross Finlayson
> What is the sane/standard way of doing this? This is a general problem that people have: How to write a “FramedSource” subclass that implements a data source. In particular: How to implement the “doGetNextFrame()” virtual function. The first important thing to note is that I/O within LIVE555

Re: [Live-devel] Custom memory buffer source

2016-09-15 Thread sampsa
As a second thought, I guess I just do a plain "return" in doGetNextFrame if there is no data .. .. and then do as the faq says, i.e. arrange FramedSource::afterGetting(this) call once there _is_ data, right? Sorry for the spam! On 15.09.2016 17:15, sampsa wrote: Hi, I have a custom source

[Live-devel] Custom memory buffer source

2016-09-15 Thread sampsa
Hi, I have a custom source, based on the "MyByteStreamMemoryBufferSource" Frames appear to this source most of the time in frame "bursts" .. first no frames, then suddenly a lots of them In pseudocode: // Sources/Filters: bytesource =MyByteStreamMemoryBufferSource::createNew