diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-07-29 12:14:21 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-07-29 12:14:21 +0000 |
commit | aa3e2f264f921125ee102ff6691d2fc655f7d101 (patch) | |
tree | e66ddab9e81ac02f644018d4e0817c5fb0226eae /pjlib/include/pj/math.h | |
parent | a7ef07a46af14800cffbebc0fc222c60b52b9e30 (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/include/pj/math.h')
-rw-r--r-- | pjlib/include/pj/math.h | 2 |
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))); |