Ticket #526: ticket526.2.patch
File ticket526.2.patch, 1.1 KB (added by nanang, 15 years ago) |
---|
-
pjmedia/src/pjmedia/wav_player.c
498 498 if (fport->eof && fport->readpos >= fport->eofpos) { 499 499 pj_status_t status = PJ_SUCCESS; 500 500 501 PJ_LOG(5,(THIS_FILE, "File port %.*s EOF", 502 (int)fport->base.info.name.slen, 503 fport->base.info.name.ptr)); 504 501 505 /* Call callback, if any */ 502 506 if (fport->cb) 503 507 status = (*fport->cb)(this_port, fport->base.port_data.pdata); … … 507 511 * it might have been destroyed by the callback). 508 512 */ 509 513 if ((status != PJ_SUCCESS) || (fport->options & PJMEDIA_FILE_NO_LOOP)) { 510 PJ_LOG(5,(THIS_FILE, "File port %.*s EOF, stopping..",511 (int)fport->base.info.name.slen,512 fport->base.info.name.ptr));513 514 514 frame->type = PJMEDIA_FRAME_TYPE_NONE; 515 515 frame->size = 0; 516 516 return PJ_EEOF; 517 517 } 518 518 519 PJ_LOG(5,(THIS_FILE, "File port %.*s EOF,rewinding..",519 PJ_LOG(5,(THIS_FILE, "File port %.*s rewinding..", 520 520 (int)fport->base.info.name.slen, 521 521 fport->base.info.name.ptr)); 522 522