> The question is more general, it is about a using the linear iteration
> to count objects instead of a using the counter which is present in the
> linked list container

Yes, good point.  It turns out that the “fSubsessionCounter” variable (used in 
“numSubsessions()”) wasn’t added until fairly recently (2012).  That’s why we 
didn’t use it in the (much earlier) code for setting “fNumStreamStates”.  But 
you’re right - it could (should) be used, as a small optimization.  This change 
will be made in the next release of the code.

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