summaryrefslogtreecommitdiff
path: root/pjmedia
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2011-03-15 05:09:29 +0000
committerLiong Sauw Ming <ming@teluu.com>2011-03-15 05:09:29 +0000
commit2db53631ab7583e95c0a3a7d27096af651afe753 (patch)
tree65e2ed9f50ebbb5bd28e0fd4b62b99e8eb628c33 /pjmedia
parent61099d5ef6ff79b6ef03391b03dd0a3594ec2d4e (diff)
Misc (re #1175) (thanks to Seth Hinze for the patch):
* uri_test: Fixes a divide by zero error when the benchmark is run on a really fast machine. * presence: Fixes a compiler warning about potential referencing of an uninitialized variable. * echo_speex: Allow for compilation when PJMEDIA_HAS_SPEEX_AEC is not defined. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3443 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r--pjmedia/src/pjmedia/echo_speex.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pjmedia/src/pjmedia/echo_speex.c b/pjmedia/src/pjmedia/echo_speex.c
index 5d5203a4..5b4f4724 100644
--- a/pjmedia/src/pjmedia/echo_speex.c
+++ b/pjmedia/src/pjmedia/echo_speex.c
@@ -23,6 +23,9 @@
#include <pj/assert.h>
#include <pj/log.h>
#include <pj/pool.h>
+
+#if defined(PJMEDIA_HAS_SPEEX_AEC) && PJMEDIA_HAS_SPEEX_AEC != 0
+
#include <speex/speex_echo.h>
#include <speex/speex_preprocess.h>
@@ -185,3 +188,4 @@ PJ_DEF(pj_status_t) speex_aec_cancel_echo( void *state,
}
+#endif