Changeset 4145 for pjproject/trunk


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)

Location:
pjproject/trunk/pjsip
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua_internal.h

    r4099 r4145  
    770770                                     const pjmedia_sdp_session *local_sdp, 
    771771                                     const pjmedia_sdp_session *remote_sdp); 
     772void pjsua_check_snd_dev_idle(); 
    772773 
    773774/* 
  • 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(); 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r4136 r4145  
    31293129        reset_call(call->index); 
    31303130 
     3131        pjsua_check_snd_dev_idle(); 
     3132 
    31313133        PJSUA_UNLOCK(); 
    31323134    } 
Note: See TracChangeset for help on using the changeset viewer.