Ignore:
Timestamp:
Oct 27, 2017 6:30:50 AM (7 years ago)
Author:
ming
Message:

Fixed #2053: Update pjsua_get_snd_dev() info before calling on_snd_dev_operation() callback

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r5534 r5677  
    960960static pj_status_t on_snd_dev_operation(int operation) 
    961961{ 
    962     PJ_LOG(3,(THIS_FILE, "Turning sound device %s", (operation? "ON":"OFF"))); 
     962    int cap_dev, play_dev; 
     963 
     964    pjsua_get_snd_dev(&cap_dev, &play_dev); 
     965    PJ_LOG(3,(THIS_FILE, "Turning sound device %d %d %s", cap_dev, play_dev, 
     966              (operation? "ON":"OFF"))); 
    963967    return PJ_SUCCESS; 
    964968} 
Note: See TracChangeset for help on using the changeset viewer.