- Timestamp:
- Jan 12, 2008 2:13:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/wav_player.c
r1680 r1683 157 157 (int)fport->base.info.name.slen, 158 158 fport->base.info.name.ptr)); 159 /* Zero remaining buffer */ 160 pj_bzero(fport->buf+size, size_left); 161 /* Mark port as EOF */ 159 162 fport->eof = PJ_TRUE; 160 return PJ_EEOF; 163 /* Must return PJ_SUCCESS, otherwise this buffer 164 * is not read */ 165 return PJ_SUCCESS; 161 166 } else { 162 167 PJ_LOG(5,(THIS_FILE, "File port %.*s EOF, rewinding..", … … 511 516 pj_assert(fport->base.info.signature == SIGNATURE); 512 517 518 /* Check EOF */ 519 if (fport->eof) { 520 frame->type = PJMEDIA_FRAME_TYPE_NONE; 521 frame->size = 0; 522 return PJ_EEOF; 523 } 524 513 525 //frame_size = fport->base.info.bytes_per_frame; 514 526 //pj_assert(frame->size == frame_size); … … 550 562 if (status != PJ_SUCCESS) { 551 563 pj_bzero(((char*)frame->buf)+endread, frame_size-endread); 564 fport->readpos = fport->buf + fport->bufsize; 552 565 return status; 553 566 }
Note: See TracChangeset
for help on using the changeset viewer.