summaryrefslogtreecommitdiff
path: root/pjsip/src
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-03-17 14:07:53 +0000
committerBenny Prijono <bennylp@teluu.com>2008-03-17 14:07:53 +0000
commite14e1fddbedf8c03df686ecd7c7af0c0ca0f52c6 (patch)
tree8ae1ae5d648b62b7fe49cd738e1103e91ac5b310 /pjsip/src
parent685aef52bcf830cb591798cd0814dd4a10605497 (diff)
Ticket #507: committed and tested g722 patch on Windows
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1870 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src')
-rw-r--r--pjsip/src/pjsua-lib/pjsua_media.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_media.c b/pjsip/src/pjsua-lib/pjsua_media.c
index 69d307d5..765fec0f 100644
--- a/pjsip/src/pjsua-lib/pjsua_media.c
+++ b/pjsip/src/pjsua-lib/pjsua_media.c
@@ -139,6 +139,15 @@ pj_status_t pjsua_media_subsys_init(const pjsua_media_config *cfg)
}
#endif /* PJMEDIA_HAS_G711_CODEC */
+#if PJMEDIA_HAS_G722_CODEC
+ status = pjmedia_codec_g722_init( pjsua_var.med_endpt );
+ if (status != PJ_SUCCESS) {
+ pjsua_perror(THIS_FILE, "Error initializing G722 codec",
+ status);
+ return status;
+ }
+#endif /* PJMEDIA_HAS_G722_CODEC */
+
#if PJMEDIA_HAS_L16_CODEC
/* Register L16 family codecs, but disable all */
status = pjmedia_codec_l16_init(pjsua_var.med_endpt, 0);
@@ -500,11 +509,14 @@ pj_status_t pjsua_media_subsys_destroy(void)
pjmedia_codec_g711_deinit();
# endif /* PJMEDIA_HAS_G711_CODEC */
+# if PJMEDIA_HAS_G722_CODEC
+ pjmedia_codec_g722_deinit();
+# endif /* PJMEDIA_HAS_G722_CODEC */
+
# if PJMEDIA_HAS_L16_CODEC
pjmedia_codec_l16_deinit();
# endif /* PJMEDIA_HAS_L16_CODEC */
-
pjmedia_endpt_destroy(pjsua_var.med_endpt);
pjsua_var.med_endpt = NULL;