Changeset 4020 for pjproject


Ignore:
Timestamp:
Apr 4, 2012 8:16:02 AM (13 years ago)
Author:
bennylp
Message:

More re #1478: now really do not connect to microphone when streaming avi (instead of disconnecting the whole audio)

File:
1 edited

Legend:

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

    r4019 r4020  
    28022802    { 
    28032803        pj_bool_t connect_sound = PJ_TRUE; 
     2804        pj_bool_t disconnect_mic = PJ_FALSE; 
    28042805        pjsua_conf_port_id call_conf_slot; 
    28052806 
     
    28302831        { 
    28312832            pjsua_conf_connect(app_config.avi_slot, call_conf_slot); 
    2832             connect_sound = PJ_FALSE; 
     2833            disconnect_mic = PJ_TRUE; 
    28332834        } 
    28342835 
     
    28712872        if (connect_sound) { 
    28722873            pjsua_conf_connect(call_conf_slot, 0); 
    2873             pjsua_conf_connect(0, call_conf_slot); 
     2874            if (!disconnect_mic) 
     2875                pjsua_conf_connect(0, call_conf_slot); 
    28742876 
    28752877            /* Automatically record conversation, if desired */ 
Note: See TracChangeset for help on using the changeset viewer.