Ignore:
Timestamp:
May 11, 2007 3:14:34 PM (14 years ago)
Author:
bennylp
Message:

HUGE changeset to make the rest of the libraries compile with C++ mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/wav_playlist.c

    r919 r1266  
    8585    struct playlist_port *port; 
    8686 
    87     port = pj_pool_zalloc(pool, sizeof(struct playlist_port)); 
     87    port = PJ_POOL_ZALLOC_T(pool, struct playlist_port); 
    8888    if (!port) 
    8989        return NULL; 
     
    276276 
    277277    /* Create file descriptor list */ 
    278     fport->fd_list = pj_pool_zalloc(pool, sizeof(pj_oshandle_t)*file_count); 
     278    fport->fd_list = (pj_oshandle_t*) 
     279                     pj_pool_zalloc(pool, sizeof(pj_oshandle_t)*file_count); 
    279280    if (!fport->fd_list) { 
    280281        return PJ_ENOMEM; 
     
    282283 
    283284    /* Create file size list */ 
    284     fport->fsize_list = pj_pool_alloc(pool, sizeof(pj_off_t)*file_count); 
     285    fport->fsize_list = (pj_off_t*) 
     286                        pj_pool_alloc(pool, sizeof(pj_off_t)*file_count); 
    285287    if (!fport->fsize_list) { 
    286288        return PJ_ENOMEM; 
     
    288290 
    289291    /* Create start of WAVE data list */ 
    290     fport->start_data_list = pj_pool_alloc(pool, sizeof(unsigned)*file_count); 
     292    fport->start_data_list = (unsigned*) 
     293                             pj_pool_alloc(pool, sizeof(unsigned)*file_count); 
    291294    if (!fport->start_data_list) { 
    292295        return PJ_ENOMEM; 
     
    294297 
    295298    /* Create file position list */ 
    296     fport->fpos_list = pj_pool_alloc(pool, sizeof(pj_off_t)*file_count); 
     299    fport->fpos_list = (pj_off_t*) 
     300                       pj_pool_alloc(pool, sizeof(pj_off_t)*file_count); 
    297301    if (!fport->fpos_list) { 
    298302        return PJ_ENOMEM; 
     
    306310 
    307311    /* Create buffer. */ 
    308     fport->buf = pj_pool_alloc(pool, fport->bufsize); 
     312    fport->buf = (char*) pj_pool_alloc(pool, fport->bufsize); 
    309313    if (!fport->buf) { 
    310314        return PJ_ENOMEM; 
Note: See TracChangeset for help on using the changeset viewer.