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

    r974 r1266  
    4545    PJ_ASSERT_RETURN(pool && p_port, PJ_EINVAL); 
    4646 
    47     port = pj_pool_zalloc(pool, sizeof(pjmedia_port)); 
     47    port = PJ_POOL_ZALLOC_T(pool, pjmedia_port); 
    4848    PJ_ASSERT_RETURN(pool != NULL, PJ_ENOMEM); 
    4949 
     
    8484    frame->size = this_port->info.samples_per_frame * 2; 
    8585    frame->timestamp.u32.lo += this_port->info.samples_per_frame; 
    86     pjmedia_zero_samples(frame->buf, this_port->info.samples_per_frame); 
     86    pjmedia_zero_samples((pj_int16_t*)frame->buf,  
     87                         this_port->info.samples_per_frame); 
    8788 
    8889    return PJ_SUCCESS; 
Note: See TracChangeset for help on using the changeset viewer.