summaryrefslogtreecommitdiff
path: root/pjmedia
diff options
context:
space:
mode:
authorRiza Sulistyo <riza@teluu.com>2016-11-23 08:15:49 +0000
committerRiza Sulistyo <riza@teluu.com>2016-11-23 08:15:49 +0000
commitb2f8eb556125670d415fbded6b2a8bfc5c16c688 (patch)
tree13a47f18f614445da2145814155a2b236a4aa938 /pjmedia
parent12b89ce7a100ca16ebc5a513f45aa84b196aff0a (diff)
Re #1945: Change the error message on pjsua_media_channel_update() when unknown/unsupported media type is found.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5489 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r--pjmedia/include/pjmedia/errno.h6
-rw-r--r--pjmedia/src/pjmedia/errno.c1
2 files changed, 6 insertions, 1 deletions
diff --git a/pjmedia/include/pjmedia/errno.h b/pjmedia/include/pjmedia/errno.h
index 063e5437..6692847a 100644
--- a/pjmedia/include/pjmedia/errno.h
+++ b/pjmedia/include/pjmedia/errno.h
@@ -406,7 +406,11 @@ PJ_BEGIN_DECL
* Invalid or bad format
*/
#define PJMEDIA_EBADFMT (PJMEDIA_ERRNO_START+108) /* 220108 */
-
+/**
+ * @hideinitializer
+ * Unsupported media type.
+ */
+#define PJMEDIA_EUNSUPMEDIATYPE (PJMEDIA_ERRNO_START+109) /* 220109 */
/************************************************************
* RTP SESSION ERRORS
diff --git a/pjmedia/src/pjmedia/errno.c b/pjmedia/src/pjmedia/errno.c
index a4584739..d14d1163 100644
--- a/pjmedia/src/pjmedia/errno.c
+++ b/pjmedia/src/pjmedia/errno.c
@@ -117,6 +117,7 @@ static const struct
PJ_BUILD_ERR( PJMEDIA_RTP_EINDTMF, "Invalid DTMF digit" ),
PJ_BUILD_ERR( PJMEDIA_RTP_EREMNORFC2833,"Remote does not support RFC 2833" ),
PJ_BUILD_ERR( PJMEDIA_EBADFMT, "Bad format"),
+ PJ_BUILD_ERR( PJMEDIA_EUNSUPMEDIATYPE, "Unsupported media type"),
/* RTP session errors. */
PJ_BUILD_ERR( PJMEDIA_RTP_EINPKT, "Invalid RTP packet" ),