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/resample_resample.c

    r1242 r1266  
    5959                     rate_out && samples_per_frame, PJ_EINVAL); 
    6060 
    61     resample = pj_pool_alloc(pool, sizeof(pjmedia_resample)); 
     61    resample = PJ_POOL_ALLOC_T(pool, pjmedia_resample); 
    6262    PJ_ASSERT_RETURN(resample, PJ_ENOMEM); 
    6363 
     
    8989 
    9090        size = (samples_per_frame + 2*resample->xoff) * sizeof(pj_int16_t); 
    91         resample->buffer = pj_pool_alloc(pool, size); 
     91        resample->buffer = (pj_int16_t*) pj_pool_alloc(pool, size); 
    9292        PJ_ASSERT_RETURN(resample->buffer, PJ_ENOMEM); 
    9393 
Note: See TracChangeset for help on using the changeset viewer.