Ignore:
Timestamp:
May 22, 2012 11:13:22 PM (12 years ago)
Author:
bennylp
Message:

Fixed #1515: Sound device is not closed when the call fails to connect (thanks Régis Montoya for the report)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_aud.c

    r4090 r4145  
    378378 
    379379/* Check if sound device is idle. */ 
    380 static void check_snd_dev_idle() 
     380void pjsua_check_snd_dev_idle() 
    381381{ 
    382382    unsigned call_cnt; 
     
    440440    PJSUA_LOCK(); 
    441441    if (entry->id) { 
    442         PJ_LOG(4,(THIS_FILE,"Closing sound device after idle for %d seconds", 
     442        PJ_LOG(4,(THIS_FILE,"Closing sound device after idle for %d second(s)", 
    443443                  pjsua_var.media_cfg.snd_auto_close_time)); 
    444444 
     
    533533    } 
    534534 
    535     check_snd_dev_idle(); 
     535    pjsua_check_snd_dev_idle(); 
    536536} 
    537537 
     
    792792 
    793793    status = pjmedia_conf_remove_port(pjsua_var.mconf, (unsigned)id); 
    794     check_snd_dev_idle(); 
     794    pjsua_check_snd_dev_idle(); 
    795795 
    796796    return status; 
     
    958958 
    959959    status = pjmedia_conf_disconnect_port(pjsua_var.mconf, source, sink); 
    960     check_snd_dev_idle(); 
     960    pjsua_check_snd_dev_idle(); 
    961961 
    962962    pj_log_pop_indent(); 
Note: See TracChangeset for help on using the changeset viewer.