- Timestamp:
- Jan 12, 2008 3:30:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/wav_player.c
r1683 r1685 516 516 pj_assert(fport->base.info.signature == SIGNATURE); 517 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 525 518 //frame_size = fport->base.info.bytes_per_frame; 526 519 //pj_assert(frame->size == frame_size); … … 561 554 status = fill_buffer(fport); 562 555 if (status != PJ_SUCCESS) { 563 pj_bzero(((char*)frame->buf)+endread, frame_size-endread); 556 /* If we don't get anything, return NONE frame. Otherwise 557 * return AUDIO frame since we have partial audio. 558 */ 559 if (endread == 0) { 560 frame->type = PJMEDIA_FRAME_TYPE_NONE; 561 } else { 562 pj_bzero(((char*)frame->buf)+endread, frame_size-endread); 563 } 564 564 fport->readpos = fport->buf + fport->bufsize; 565 return status;565 return PJ_SUCCESS; 566 566 } 567 567
Note: See TracChangeset
for help on using the changeset viewer.