> On Jan 26, 2022, at 8:43 PM, Victor Vitkovskiy 
> <victor.vitkovs...@mirasys.com> wrote:
> 
> Hello Ross, 
> 
> I have one question regarding the copying data to output buffer when I am 
> implementing own FramedSource.
> There is an fTo buffer that has a maximum size fMaxSize, this fMaxSize is 
> taken from OutPacketBuffer::maxSize value. 
> 
> So, the question is - can I change this buffer size dynamically? 

No.  “fMaxSize” is set by the downstream object when it calls “getNextFrame()” 
(and thus “doGetNextFrame()”).  It is the maximum size of data that the 
downstream object is prepared to receive.  Therefore, it should be treated as 
an “in” value by each implementation of “doGetNextFrame()”, and this 
implementation of “doGetNextFrame()” should never transfer more data than this. 
 (Instead, it should set “fFrameSize” to “fMaxSize”, transfer only this amount 
of data, and set “fNumTruncatedBytes” to the remaining count of (untransferred) 
bytes.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to