Changeset 2679 for pjproject/trunk
- Timestamp:
- May 6, 2009 7:08:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r2597 r2679 523 523 PJ_UNUSED_ARG(th); 524 524 525 PJ_LOG(4,(THIS_FILE,"Closing sound device after idle for %d seconds", 526 pjsua_var.media_cfg.snd_auto_close_time)); 527 528 entry->id = PJ_FALSE; 529 530 close_snd_dev(); 525 PJSUA_LOCK(); 526 if (entry->id) { 527 PJ_LOG(4,(THIS_FILE,"Closing sound device after idle for %d seconds", 528 pjsua_var.media_cfg.snd_auto_close_time)); 529 530 entry->id = PJ_FALSE; 531 532 close_snd_dev(); 533 } 534 PJSUA_UNLOCK(); 531 535 } 532 536 … … 1667 1671 { 1668 1672 /* If sound device idle timer is active, cancel it first. */ 1673 PJSUA_LOCK(); 1669 1674 if (pjsua_var.snd_idle_timer.id) { 1670 1675 pjsip_endpt_cancel_timer(pjsua_var.endpt, &pjsua_var.snd_idle_timer); 1671 1676 pjsua_var.snd_idle_timer.id = PJ_FALSE; 1672 1677 } 1678 PJSUA_UNLOCK(); 1673 1679 1674 1680
Note: See TracChangeset
for help on using the changeset viewer.