Ignore:
Timestamp:
May 9, 2019 7:24:57 AM (4 years ago)
Author:
nanang
Message:

Re #1298: Updated PJMEDIA* to use PJ_ERROR consistently.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/transport_ice.c

    r5853 r5982  
    395395{ 
    396396    if (err != PJ_SUCCESS) { 
    397         char errmsg[PJ_ERR_MSG_SIZE]; 
    398         pj_strerror(err, errmsg, sizeof(errmsg)); 
    399         PJ_LOG(4,(tp_ice->base.name,  
    400                   "Stopping ICE, reason=%s:%s", reason, errmsg)); 
     397        PJ_PERROR(4,(tp_ice->base.name, err, 
     398                     "Stopping ICE, reason=%s", reason)); 
    401399    } else { 
    402400        PJ_LOG(4,(tp_ice->base.name,  
     
    10611059                            &rem_m->attr[i]->value, &cand); 
    10621060        if (status != PJ_SUCCESS) { 
    1063             PJ_LOG(4,(tp_ice->base.name,  
    1064                       "Error in parsing SDP candidate attribute '%.*s', " 
    1065                       "candidate is ignored", 
    1066                       (int)rem_m->attr[i]->value.slen,  
    1067                       rem_m->attr[i]->value.ptr)); 
     1061            PJ_PERROR(4,(tp_ice->base.name, status, 
     1062                        "Error in parsing SDP candidate attribute '%.*s', " 
     1063                        "candidate is ignored", 
     1064                        (int)rem_m->attr[i]->value.slen,  
     1065                        rem_m->attr[i]->value.ptr)); 
    10681066            continue; 
    10691067        } 
     
    14911489                            &cand[cand_cnt]); 
    14921490        if (status != PJ_SUCCESS) { 
    1493             PJ_LOG(4,(tp_ice->base.name,  
    1494                       "Error in parsing SDP candidate attribute '%.*s', " 
    1495                       "candidate is ignored", 
    1496                       (int)attr->value.slen, attr->value.ptr)); 
     1491            PJ_PERROR(4,(tp_ice->base.name, status, 
     1492                        "Error in parsing SDP candidate attribute '%.*s', " 
     1493                        "candidate is ignored", 
     1494                        (int)attr->value.slen, attr->value.ptr)); 
    14971495            continue; 
    14981496        } 
     
    16711669                                            &pwd_attr->value); 
    16721670            if (status != PJ_SUCCESS) { 
    1673                 PJ_LOG(1,(tp_ice->base.name,  
    1674                           "ICE re-initialization failed (status=%d)!", 
    1675                           status)); 
     1671                PJ_PERROR(1,(tp_ice->base.name, status, 
     1672                             "ICE re-initialization failed!")); 
    16761673                return status; 
    16771674            } 
     
    17111708    status = start_ice(tp_ice, tmp_pool, rem_sdp, media_index); 
    17121709    if (status != PJ_SUCCESS) { 
    1713         PJ_LOG(1,(tp_ice->base.name,  
    1714                   "ICE restart failed (status=%d)!", 
    1715                   status)); 
     1710        PJ_PERROR(1,(tp_ice->base.name, status, "ICE restart failed!")); 
    17161711        return status; 
    17171712    } 
Note: See TracChangeset for help on using the changeset viewer.