Ignore:
Timestamp:
Nov 23, 2016 8:15:49 AM (4 years ago)
Author:
riza
Message:

Re #1945: Change the error message on pjsua_media_channel_update() when unknown/unsupported media type is found.

File:
1 edited

Legend:

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

    r5487 r5489  
    32333233#endif 
    32343234        } else { 
    3235             status = PJMEDIA_EINVALIMEDIATYPE; 
     3235            status = PJMEDIA_EUNSUPMEDIATYPE; 
    32363236        } 
    32373237 
     
    32623262            call_med->dir = PJMEDIA_DIR_NONE; 
    32633263 
    3264             PJ_PERROR(1,(THIS_FILE, status, "Error updating media call%02d:%d", 
    3265                          call_id, mi)); 
     3264            if (status != PJMEDIA_EUNSUPMEDIATYPE) { 
     3265                PJ_PERROR(1, (THIS_FILE, status, "Error updating media " 
     3266                              "call%02d:%d", call_id, mi)); 
     3267            } else { 
     3268                PJ_PERROR(3, (THIS_FILE, status, "Skipped updating media " 
     3269                              "call%02d:%d (media type=%s)", call_id, mi,  
     3270                              pjmedia_type_name(call_med->type))); 
     3271            } 
     3272 
    32663273        } else { 
    32673274            /* Only set 'got_media' flag if this media is not disabled */ 
Note: See TracChangeset for help on using the changeset viewer.