Changeset 3814 for pjproject/branches/1.x/pjmedia/src/test/jbuf_test.c
- Timestamp:
- Oct 13, 2011 9:02:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjmedia/src/test/jbuf_test.c
r3553 r3814 44 44 int lost; 45 45 int empty; 46 int delay; /**< Maximum delay, in frames. */ 46 int delay; /**< Average delay, in frames. */ 47 int delay_min; /**< Minimum delay, in frames. */ 47 48 } test_cond_t; 48 49 … … 70 71 else if (pj_ansi_stricmp(cond_st, "delay") == 0) 71 72 cond->delay = cond_val; 73 else if (pj_ansi_stricmp(cond_st, "delay_min") == 0) 74 cond->delay_min = cond_val; 72 75 else if (pj_ansi_stricmp(cond_st, "discard") == 0) 73 76 cond->discard = cond_val; … … 218 221 cond.burst = -1; 219 222 cond.delay = -1; 223 cond.delay_min = -1; 220 224 cond.discard = -1; 221 225 cond.empty = -1; … … 314 318 rc |= 2; 315 319 } 320 if (cond.delay_min >= 0 && (int)state.min_delay/JB_PTIME > cond.delay_min) { 321 printf("! 'Minimum delay' should be %d, it is %d\n", 322 cond.delay_min, state.min_delay/JB_PTIME); 323 rc |= 32; 324 } 316 325 if (cond.discard >= 0 && (int)state.discard > cond.discard) { 317 326 printf("! 'Discard' should be %d, it is %d\n",
Note: See TracChangeset
for help on using the changeset viewer.