Changeset 4030


Ignore:
Timestamp:
Apr 9, 2012 6:56:57 AM (7 years ago)
Author:
nanang
Message:

Fix #1480: update read buffer pointer after updating buffer in pjmedia_wav_player_port_set_pos().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjmedia/src/pjmedia/wav_player.c

    r3846 r4030  
    453453{ 
    454454    struct file_reader_port *fport; 
     455    pj_status_t status; 
    455456 
    456457    /* Sanity check */ 
     
    473474 
    474475    fport->eof = PJ_FALSE; 
    475     return fill_buffer(fport); 
     476    status = fill_buffer(fport); 
     477    if (status != PJ_SUCCESS) 
     478        return status; 
     479 
     480    fport->readpos = fport->buf; 
     481 
     482    return PJ_SUCCESS; 
    476483} 
    477484 
Note: See TracChangeset for help on using the changeset viewer.