summaryrefslogtreecommitdiff
path: root/pjsip-apps
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-01-27 18:09:28 +0000
committerBenny Prijono <bennylp@teluu.com>2007-01-27 18:09:28 +0000
commit3397a16a8aa59c17c3a3ebda67e6816001733629 (patch)
tree9b0b2008b8aebf86e10722563f337ba46c521064 /pjsip-apps
parenteba3e373a6d578348bd373dc02acebe28528f7c1 (diff)
Fixed ticket #82: link error when codec(s) are disabled from configure script (thanks Thomas Reitmayr)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@910 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps')
-rw-r--r--pjsip-apps/src/samples/pjsip-perf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pjsip-apps/src/samples/pjsip-perf.c b/pjsip-apps/src/samples/pjsip-perf.c
index 0f5dab00..8cf76eed 100644
--- a/pjsip-apps/src/samples/pjsip-perf.c
+++ b/pjsip-apps/src/samples/pjsip-perf.c
@@ -920,10 +920,15 @@ static pj_status_t init_media()
/* Must register all codecs to be supported */
+#if defined(PJMEDIA_HAS_G711_CODEC) && PJMEDIA_HAS_G711_CODEC!=0
pjmedia_codec_g711_init(app.med_endpt);
+#endif
+#if defined(PJMEDIA_HAS_GSM_CODEC) && PJMEDIA_HAS_GSM_CODEC!=0
pjmedia_codec_gsm_init(app.med_endpt);
+#endif
+#if defined(PJMEDIA_HAS_SPEEX_CODEC) && PJMEDIA_HAS_SPEEX_CODEC!=0
pjmedia_codec_speex_init(app.med_endpt, PJMEDIA_SPEEX_NO_UWB, 3, 3);
-
+#endif
/* Init dummy socket addresses */
app.skinfo_cnt = 0;