- Timestamp:
- Mar 22, 2012 3:29:56 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r3945 r3981 279 279 unsigned call_cnt; 280 280 281 /* Check if the sound device auto-close feature is disabled. */ 282 if (pjsua_var.media_cfg.snd_auto_close_time < 0) 283 return; 284 285 /* Check if the sound device is currently closed. */ 286 if (!pjsua_var.snd_is_on) 287 return; 288 281 289 /* Get the call count, we shouldn't close the sound device when there is 282 290 * any calls active. … … 305 313 * It is idle when there is no port connection in the bridge and 306 314 * there is no active call. 307 *308 * Note: this block is now valid if no snd dev is used because of #1299309 315 */ 310 if ((pjsua_var.snd_port!=NULL || pjsua_var.null_snd!=NULL || 311 pjsua_var.no_snd) && 312 pjsua_var.snd_idle_timer.id == PJ_FALSE && 313 pjmedia_conf_get_connect_count(pjsua_var.mconf) == 0 && 316 if (pjsua_var.snd_idle_timer.id == PJ_FALSE && 314 317 call_cnt == 0 && 315 pj sua_var.media_cfg.snd_auto_close_time >= 0)318 pjmedia_conf_get_connect_count(pjsua_var.mconf) == 0) 316 319 { 317 320 pj_time_val delay; … … 3838 3841 } 3839 3842 3843 pjsua_var.snd_is_on = PJ_TRUE; 3844 3840 3845 pj_log_pop_indent(); 3841 3846 return PJ_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.