diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2010-01-20 01:02:37 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2010-01-20 01:02:37 +0000 |
commit | 7ece324274c1012b34fb41dbee67eb5f51924f03 (patch) | |
tree | 63ebd56f92760098fc4f76eb018617db5fb0b5d8 /pjmedia/src/test/jbuf_test.c | |
parent | d8789cab8ce1fa54b1f02f4ab448fc83f9af2a44 (diff) |
Ticket #969:
- implemented progressive discard algorithm, discard rate is calculated from ratio of effective size to effective burst level.
- updated jbuf to clarify prefetch and burst level distinction, previously they are stored in same var, i.e: prefetch, while the semantic is actually different.
- updated STABLE_HISTORY_LIMIT in jbuf, it is now 20 (was 100), to adjust burst level faster.
- added test case of periodic-spike-burst-case in jbtest.dat for testing the new algorithm.
- updated stream to limit the rate of jbuf empty/lost log messages, it will only log first empty/lost event, then log again once jbuf returning normal frame (also counter of previous empty/lost frames).
- minor updates on jbuf.c: variable names, logs, added burst to jbuf state.
- minor updates on jbuf_test.c: handle comment in test session header, seq jump is now 20 (was 5000).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3065 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/src/test/jbuf_test.c')
-rw-r--r-- | pjmedia/src/test/jbuf_test.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pjmedia/src/test/jbuf_test.c b/pjmedia/src/test/jbuf_test.c index 976995dd..c2a3b1d4 100644 --- a/pjmedia/src/test/jbuf_test.c +++ b/pjmedia/src/test/jbuf_test.c @@ -81,6 +81,10 @@ static pj_bool_t parse_test_headers(char *line, test_param_t *param, ++p; while (*p && isspace(*p)) ++p; printf("%s", p); + + } else if (*p == '#') { + /* Ignore comment line. */ + } else { /* Unknown header, perhaps this is the test data */ @@ -122,7 +126,7 @@ static pj_bool_t process_test_data(char data, pjmedia_jbuf *jb, printf("Sequence restarting, from %u to %u\n", *last_seq, *seq); break; case 'J': /* Sequence jumps */ - (*seq) += 5000; + (*seq) += 20; printf("Sequence jumping, from %u to %u\n", *last_seq, *seq); break; case 'D': /* Frame duplicated */ |