- Timestamp:
- Jun 25, 2009 1:09:24 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.0/pjsip/src/pjsua-lib/pjsua_media.c
r2541 r2813 469 469 PJ_UNUSED_ARG(th); 470 470 471 PJ_LOG(4,(THIS_FILE,"Closing sound device after idle for %d seconds", 472 pjsua_var.media_cfg.snd_auto_close_time)); 473 474 entry->id = PJ_FALSE; 475 476 close_snd_dev(); 471 PJSUA_LOCK(); 472 if (entry->id) { 473 PJ_LOG(4,(THIS_FILE,"Closing sound device after idle for %d seconds", 474 pjsua_var.media_cfg.snd_auto_close_time)); 475 476 entry->id = PJ_FALSE; 477 478 close_snd_dev(); 479 } 480 PJSUA_UNLOCK(); 477 481 } 478 482 … … 1606 1610 { 1607 1611 /* If sound device idle timer is active, cancel it first. */ 1612 PJSUA_LOCK(); 1608 1613 if (pjsua_var.snd_idle_timer.id) { 1609 1614 pjsip_endpt_cancel_timer(pjsua_var.endpt, &pjsua_var.snd_idle_timer); 1610 1615 pjsua_var.snd_idle_timer.id = PJ_FALSE; 1611 1616 } 1617 PJSUA_UNLOCK(); 1612 1618 1613 1619 /* Create sound port if none is instantiated */
Note: See TracChangeset
for help on using the changeset viewer.