Changeset 3849 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
- Timestamp:
- Oct 25, 2011 8:51:02 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r3841 r3849 778 778 switch (op) { 779 779 case PJ_ICE_STRANS_OP_INIT: 780 PJSUA_LOCK(); 780 781 call_med->tp_ready = result; 781 782 if (call_med->med_create_cb) 782 783 (*call_med->med_create_cb)(call_med, result, 783 784 call_med->call->secure_level, NULL); 785 PJSUA_UNLOCK(); 784 786 break; 785 787 case PJ_ICE_STRANS_OP_NEGOTIATION: … … 1420 1422 set_media_tp_state(call_med, PJSUA_MED_TP_CREATING); 1421 1423 1422 if (async) {1423 call_med->med_create_cb = &call_media_init_cb;1424 call_med->med_init_cb = cb;1425 }1426 1427 1424 if (pjsua_var.media_cfg.enable_ice) { 1428 1425 status = create_ice_media_transport(tcfg, call_med, async); 1429 if (async && status == PJ_SUCCESS) { 1430 /* Callback has been called. */ 1431 call_med->med_init_cb = NULL; 1432 /* We cannot return PJ_SUCCESS here since we already call 1433 * the callback. 1434 */ 1435 return PJ_EPENDING; 1436 } else if (async && status == PJ_EPENDING) { 1426 if (async && status == PJ_EPENDING) { 1437 1427 /* We will resume call media initialization in the 1438 1428 * on_ice_complete() callback. 1439 1429 */ 1430 call_med->med_create_cb = &call_media_init_cb; 1431 call_med->med_init_cb = cb; 1432 1440 1433 return PJ_EPENDING; 1441 1434 }
Note: See TracChangeset
for help on using the changeset viewer.