summaryrefslogtreecommitdiff
path: root/pjlib
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-07-29 12:14:21 +0000
committerBenny Prijono <bennylp@teluu.com>2009-07-29 12:14:21 +0000
commitaa3e2f264f921125ee102ff6691d2fc655f7d101 (patch)
treee66ddab9e81ac02f644018d4e0817c5fb0226eae /pjlib
parenta7ef07a46af14800cffbebc0fc222c60b52b9e30 (diff)
Ticket #923: New API to retrieve current jitter buffer state from a stream/session
- added pjmedia_session_get_stream_stat_jbuf() and pjmedia_session_get_stream_stat_jbuf() - fixed const correctness in pjmedia_jbuf_get_state(), jb_framelist_size(), and pj_math_stat_get_stddev(), - modify the jitter buffer statistic log message printed by stream (it contains newlines) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2844 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib')
-rw-r--r--pjlib/include/pj/math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pjlib/include/pj/math.h b/pjlib/include/pj/math.h
index 8d202dbf..4d523c35 100644
--- a/pjlib/include/pj/math.h
+++ b/pjlib/include/pj/math.h
@@ -168,7 +168,7 @@ PJ_INLINE(void) pj_math_stat_update(pj_math_stat *stat, int val)
*
* @return The standard deviation.
*/
-PJ_INLINE(unsigned) pj_math_stat_get_stddev(pj_math_stat *stat)
+PJ_INLINE(unsigned) pj_math_stat_get_stddev(const pj_math_stat *stat)
{
if (stat->n == 0) return 0;
return (pj_isqrt((unsigned)(stat->m2_/stat->n)));