Changeset 411 for pjproject/trunk/pjmedia/src/pjmedia/conference.c
- Timestamp:
- Apr 27, 2006 10:36:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/conference.c
r358 r411 238 238 if (port) { 239 239 conf_port->port = port; 240 conf_port->clock_rate = port->info. sample_rate;240 conf_port->clock_rate = port->info.clock_rate; 241 241 conf_port->samples_per_frame = port->info.samples_per_frame; 242 242 } else { … … 443 443 conf->master_port->info.need_info = 0; 444 444 conf->master_port->info.pt = 0xFF; 445 conf->master_port->info. sample_rate = clock_rate;445 conf->master_port->info.clock_rate = clock_rate; 446 446 conf->master_port->info.samples_per_frame = samples_per_frame; 447 447 conf->master_port->info.signature = 0; … … 1091 1091 pj_int16_t *buf; 1092 1092 unsigned j; 1093 pj_status_t status; 1093 1094 1094 1095 /* If port is muted or nobody is transmitting to this port, … … 1181 1182 } 1182 1183 1183 /* If port has the same clock_ date and samples_per_frame settings as1184 /* If port has the same clock_rate and samples_per_frame settings as 1184 1185 * the conference bridge, transmit the frame as is. 1185 1186 */ … … 1225 1226 } 1226 1227 1227 /* Transmit once we have enough frame in the tx_buf. */ 1228 if (cport->tx_buf_count >= cport->samples_per_frame) { 1228 /* Transmit while we have enough frame in the tx_buf. */ 1229 status = PJ_SUCCESS; 1230 while (cport->tx_buf_count >= cport->samples_per_frame && 1231 status == PJ_SUCCESS) 1232 { 1229 1233 1230 pj_status_t status;1231 1232 1234 TRACE_((THIS_FILE, "write_port %.*s: count=%d", 1233 1235 (int)cport->name.slen, cport->name.ptr, … … 1260 1262 TRACE_((THIS_FILE, " tx_buf count now is %d", 1261 1263 cport->tx_buf_count)); 1262 1263 return status; 1264 } 1265 1266 return PJ_SUCCESS; 1264 } 1265 1266 return status; 1267 1267 } 1268 1268
Note: See TracChangeset
for help on using the changeset viewer.