Changeset 459 for pjproject/trunk


Ignore:
Timestamp:
May 20, 2006 9:55:07 AM (19 years ago)
Author:
bennylp
Message:

Fixed crashed with the latest VAD changes

File:
1 edited

Legend:

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

    r457 r459  
    228228 
    229229 
    230     /* Create and init vad. */ 
    231     status = pjmedia_silence_det_create( pool,  
    232                                          port->info.clock_rate, 
    233                                          port->info.samples_per_frame, 
    234                                          &conf_port->vad); 
    235     if (status != PJ_SUCCESS) 
    236         return status; 
    237  
    238     pjmedia_silence_det_set_fixed(conf_port->vad, 2); 
    239  
    240230    /* Save some port's infos, for convenience. */ 
    241231    if (port) { 
     
    248238        conf_port->samples_per_frame = conf->samples_per_frame; 
    249239    } 
     240 
     241    /* Create and init vad. */ 
     242    status = pjmedia_silence_det_create( pool,  
     243                                         conf_port->clock_rate, 
     244                                         conf_port->samples_per_frame, 
     245                                         &conf_port->vad); 
     246    if (status != PJ_SUCCESS) 
     247        return status; 
     248 
     249    /* Set fixed */ 
     250    pjmedia_silence_det_set_fixed(conf_port->vad, 2); 
     251 
    250252 
    251253    /* If port's clock rate is different than conference's clock rate, 
Note: See TracChangeset for help on using the changeset viewer.