> On Nov 8, 2023, at 1:23 AM, Andy Hawkins <andy.hawk...@uniguest.com> wrote:
> 
> Hi,
> 
> Thanks again, that's very helpful.
> 
> One remaining issue, the 'getRTPSinkandRTCP' method in returns *const*​ 
> pointers, but the RTPSink member 'getTotalBitrate' is not a const method, so 
> can't be called from these pointers.

Correct.  “getTotalBitrate()” modifies the state of the object (to reset the 
‘last called time’ and counter), so it can’t be const.

So, in the pseudo code I included in my last email, the declaration of 
“rtpSink” should have been
        RTPSink* rtpSink;
(at least, if you want to call “getTotalBitrate()”


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