summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-05-11 14:32:26 +0000
committerBenny Prijono <bennylp@teluu.com>2006-05-11 14:32:26 +0000
commit2f8b02f1c039db2992de6a9197336874585db911 (patch)
treed09a020133e41a8c1ad89621a25cd6b8f2ef9f8b
parentaf23f4acec679cb8a42074206dbe463f8160a370 (diff)
Fixed bugs: stream should give to jitter buffer the extended/32bit sequence number instead of raw 16bit sequence number from RTP, to handle the sequence wrapping case, and added options in jbuf to behave as fixed buffer, and added extra frame type for jitter buffer returned frame.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@436 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjmedia/include/pjmedia/jbuf.h2
-rw-r--r--pjmedia/src/pjmedia/jbuf.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/pjmedia/include/pjmedia/jbuf.h b/pjmedia/include/pjmedia/jbuf.h
index 4a5c1abb..c9bf495f 100644
--- a/pjmedia/include/pjmedia/jbuf.h
+++ b/pjmedia/include/pjmedia/jbuf.h
@@ -219,7 +219,7 @@ PJ_DECL(pj_status_t) pjmedia_jbuf_get_frame( pjmedia_jbuf *jb,
/**
- * Get jitter buffer state.
+ * Get jitter buffer current state/settings.
*
* @param jb The jitter buffer.
* @param state Buffer to receive jitter buffer state.
diff --git a/pjmedia/src/pjmedia/jbuf.c b/pjmedia/src/pjmedia/jbuf.c
index cfee2379..228245a1 100644
--- a/pjmedia/src/pjmedia/jbuf.c
+++ b/pjmedia/src/pjmedia/jbuf.c
@@ -521,11 +521,11 @@ PJ_DEF(pj_status_t) pjmedia_jbuf_get_frame( pjmedia_jbuf *jb,
/* We've successfully retrieved a frame from the frame list, but
* the frame could be a blank frame!
*/
- if (ftype == PJMEDIA_JB_NORMAL_FRAME) {
+ if (ftype == PJMEDIA_JB_NORMAL_FRAME)
*p_frame_type = PJMEDIA_JB_NORMAL_FRAME;
- } else {
+ else
*p_frame_type = PJMEDIA_JB_MISSING_FRAME;
- }
+
return PJ_SUCCESS;
}