Changeset 5489 for pjproject


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

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

Location:
pjproject/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/errno.h

    r3945 r5489  
    407407 */ 
    408408#define PJMEDIA_EBADFMT             (PJMEDIA_ERRNO_START+108)    /* 220108 */ 
    409  
     409/** 
     410 * @hideinitializer 
     411 * Unsupported media type. 
     412 */ 
     413#define PJMEDIA_EUNSUPMEDIATYPE     (PJMEDIA_ERRNO_START+109)    /* 220109 */ 
    410414 
    411415/************************************************************ 
  • pjproject/trunk/pjmedia/src/pjmedia/errno.c

    r4613 r5489  
    118118    PJ_BUILD_ERR( PJMEDIA_RTP_EREMNORFC2833,"Remote does not support RFC 2833" ), 
    119119    PJ_BUILD_ERR( PJMEDIA_EBADFMT,          "Bad format"), 
     120    PJ_BUILD_ERR( PJMEDIA_EUNSUPMEDIATYPE,  "Unsupported media type"), 
    120121 
    121122    /* RTP session errors. */ 
  • 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.