Changeset 4852


Ignore:
Timestamp:
May 28, 2014 8:44:31 AM (10 years ago)
Author:
ming
Message:

Re #1751 (misc): Avoid setting sound device if sound devices are the same (thanks to Christian Ambach for the patch)

File:
1 edited

Legend:

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

    r4793 r4852  
    19201920    PJSUA_LOCK(); 
    19211921 
     1922    if (pjsua_var.cap_dev == capture_dev && 
     1923        pjsua_var.play_dev == playback_dev) 
     1924    { 
     1925        PJ_LOG(4, (THIS_FILE, "No changes in capture and playback devices")); 
     1926        PJSUA_UNLOCK(); 
     1927        pj_log_pop_indent(); 
     1928        return PJ_SUCCESS; 
     1929    } 
     1930     
    19221931    /* Null-sound */ 
    19231932    if (capture_dev==NULL_SND_DEV_ID && playback_dev==NULL_SND_DEV_ID) { 
Note: See TracChangeset for help on using the changeset viewer.