Changeset 582 for pjproject/trunk/pjmedia/src/pjmedia/jbuf.c
- Timestamp:
- Jul 3, 2006 3:19:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/jbuf.c
r442 r582 99 99 PJ_ASSERT_RETURN(pool && framelist, PJ_EINVAL); 100 100 101 pj_ memset(framelist, 0, sizeof(jb_framelist));101 pj_bzero(framelist, sizeof(jb_framelist)); 102 102 103 103 framelist->flist_frame_size = frame_size; … … 147 147 framelist->flist_frame_type[framelist->flist_head]; 148 148 149 pj_ memset(framelist->flist_buffer +149 pj_bzero(framelist->flist_buffer + 150 150 framelist->flist_head * framelist->flist_frame_size, 151 0,framelist->flist_frame_size);151 framelist->flist_frame_size); 152 152 framelist->flist_frame_type[framelist->flist_head] = 153 153 PJMEDIA_JB_MISSING_FRAME; … … 162 162 163 163 } else { 164 pj_ memset(frame, 0, framelist->flist_frame_size);164 pj_bzero(frame, framelist->flist_frame_size); 165 165 return PJ_FALSE; 166 166 } … … 190 190 } 191 191 192 pj_ memset(framelist->flist_buffer +192 pj_bzero(framelist->flist_buffer + 193 193 framelist->flist_head * framelist->flist_frame_size, 194 0,195 194 step1*framelist->flist_frame_size); 196 195 pj_memset(framelist->flist_frame_type+framelist->flist_head, … … 199 198 200 199 if (step2) { 201 pj_memset(framelist->flist_buffer, 202 0, 200 pj_bzero( framelist->flist_buffer, 203 201 step2*framelist->flist_frame_size); 204 202 pj_memset(framelist->flist_frame_type, … … 528 526 * minimum prefetch. 529 527 */ 530 pj_ memset(frame, 0, jb->jb_frame_size);528 pj_bzero(frame, jb->jb_frame_size); 531 529 if (jb_framelist_size(&jb->jb_framelist) == 0) 532 530 *p_frame_type = PJMEDIA_JB_ZERO_EMPTY_FRAME; … … 540 538 if (jb_framelist_get(&jb->jb_framelist,frame,&ftype) == PJ_FALSE) { 541 539 /* Can't return frame because jitter buffer is empty! */ 542 pj_ memset(frame, 0, jb->jb_frame_size);540 pj_bzero(frame, jb->jb_frame_size); 543 541 *p_frame_type = PJMEDIA_JB_ZERO_EMPTY_FRAME; 544 542
Note: See TracChangeset
for help on using the changeset viewer.