Ignore:
Timestamp:
Mar 15, 2006 7:32:41 PM (18 years ago)
Author:
bennylp
Message:

Added Null port, and changed conference so that it does not call port get_frame() when there is no listener on the port

File:
1 edited

Legend:

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

    r312 r318  
    492492    pj_status_t status; 
    493493 
    494     PJ_ASSERT_RETURN(conf && pool && strm_port && port_name && p_port,  
    495                      PJ_EINVAL); 
     494    PJ_ASSERT_RETURN(conf && pool && strm_port && port_name, PJ_EINVAL); 
    496495 
    497496    pj_mutex_lock(conf->mutex); 
     
    523522 
    524523    /* Done. */ 
    525     *p_port = index; 
     524    if (p_port) { 
     525        *p_port = index; 
     526    } 
    526527 
    527528    pj_mutex_unlock(conf->mutex); 
     
    10521053            continue; 
    10531054        } 
     1055 
     1056        /* Also skip if this port doesn't have listeners. */ 
     1057        if (conf_port->listener_cnt == 0) 
     1058            continue; 
    10541059 
    10551060        /* Get frame from this port.  
     
    11021107        } 
    11031108 
    1104         /* Also skip if this port doesn't have listeners. */ 
    1105         if (conf_port->listener_cnt == 0) 
    1106             continue; 
    1107  
    11081109        /* Get the signal level. */ 
    11091110        level = pjmedia_calc_avg_signal(output, conf->samples_per_frame); 
Note: See TracChangeset for help on using the changeset viewer.