Ignore:
Timestamp:
Sep 28, 2011 4:20:30 AM (13 years ago)
Author:
ming
Message:

Re #1266: Fixed failed automated tests for ICE

File:
1 edited

Legend:

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

    r3767 r3775  
    14151415        if (pjsua_var.media_cfg.enable_ice) { 
    14161416            status = create_ice_media_transport(tcfg, call_med, async); 
     1417            if (async && status == PJ_SUCCESS) { 
     1418                /* Callback has been called. */ 
     1419                call_med->med_init_cb = NULL; 
     1420                /* We cannot return PJ_SUCCESS here since we already call 
     1421                 * the callback. 
     1422                 */ 
     1423                return PJ_EPENDING; 
     1424            } else if (async && status == PJ_EPENDING) { 
     1425                /* We will resume call media initialization in the 
     1426                 * on_ice_complete() callback. 
     1427                 */ 
     1428                return PJ_EPENDING; 
     1429            } 
    14171430        } else { 
    14181431            status = create_udp_media_transport(tcfg, call_med); 
    14191432        } 
    14201433 
    1421         if (status == PJ_EPENDING) { 
    1422             /* We will resume call media initialization in the 
    1423              * on_ice_complete() callback. 
    1424              */ 
    1425             return PJ_EPENDING; 
    1426         } else if (status != PJ_SUCCESS) { 
     1434        if (status != PJ_SUCCESS) { 
    14271435            PJ_PERROR(1,(THIS_FILE, status, "Error creating media transport")); 
    14281436            return status; 
Note: See TracChangeset for help on using the changeset viewer.