Ignore:
Timestamp:
Dec 17, 2008 11:36:22 AM (13 years ago)
Author:
nanang
Message:

Ticket #675:

  • Fixed ICE+STUN panic E32User-CBASE 46, the problem seems to be inside the Symbian version of pjsua_handle_events().
  • Updated minor things, e.g: compile warnings
File:
1 edited

Legend:

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

    r2198 r2379  
    372372{ 
    373373    pjmedia_snd_port *snd_port; 
    374     pj_status_t status; 
    375     unsigned ptime; 
    376374 
    377375    PJ_ASSERT_RETURN(pool && p_port, PJ_EINVAL); 
     
    390388     
    391389#if PJMEDIA_SOUND_USE_DELAYBUF 
    392     ptime = samples_per_frame * 1000 / (clock_rate * channel_count); 
    393  
    394     status = pjmedia_delay_buf_create(pool, "snd_buff",  
    395                                       clock_rate, samples_per_frame, 
    396                                       channel_count, 
    397                                       PJMEDIA_SOUND_BUFFER_COUNT * ptime, 
    398                                       0, &snd_port->delay_buf); 
    399     PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    400 #else 
    401     PJ_UNUSED_ARG(status); 
    402     PJ_UNUSED_ARG(ptime); 
     390    do { 
     391        pj_status_t status; 
     392        unsigned ptime; 
     393     
     394        ptime = samples_per_frame * 1000 / (clock_rate * channel_count); 
     395     
     396        status = pjmedia_delay_buf_create(pool, "snd_buff",  
     397                                          clock_rate, samples_per_frame, 
     398                                          channel_count, 
     399                                          PJMEDIA_SOUND_BUFFER_COUNT * ptime, 
     400                                          0, &snd_port->delay_buf); 
     401        PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
     402    } while (0); 
    403403#endif 
    404404 
Note: See TracChangeset for help on using the changeset viewer.