Changeset 4537 for pjproject/trunk/pjmedia/src/pjmedia/wav_playlist.c
- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/wav_playlist.c
r3917 r4537 61 61 unsigned options; 62 62 pj_bool_t eof; 63 pj_ size_t bufsize;63 pj_uint32_t bufsize; 64 64 char *buf; 65 65 char *readpos; … … 108 108 static pj_status_t file_fill_buffer(struct playlist_port *fport) 109 109 { 110 pj_ ssize_t size_left = fport->bufsize;111 unsignedsize_to_read;110 pj_uint32_t size_left = fport->bufsize; 111 pj_uint32_t size_to_read; 112 112 pj_ssize_t size; 113 113 pj_status_t status; … … 134 134 } 135 135 136 size_left -= size;136 size_left -= (pj_uint32_t)size; 137 137 fport->fpos_list[current_file] += size; 138 138 … … 319 319 */ 320 320 if (buff_size < 1) buff_size = PJMEDIA_FILE_PORT_BUFSIZE; 321 fport->bufsize = buff_size;321 fport->bufsize = (pj_uint32_t)buff_size; 322 322 323 323 … … 570 570 { 571 571 struct playlist_port *fport = (struct playlist_port*)this_port; 572 unsignedframe_size;572 pj_size_t frame_size; 573 573 pj_status_t status; 574 574 … … 607 607 * First stage: read until end of buffer. 608 608 */ 609 endread = ( fport->buf+fport->bufsize) - fport->readpos;609 endread = (unsigned)((fport->buf+fport->bufsize) - fport->readpos); 610 610 pj_memcpy(frame->buf, fport->readpos, endread); 611 611
Note: See TracChangeset
for help on using the changeset viewer.