summaryrefslogtreecommitdiff
path: root/pjmedia
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-11-24 16:33:27 +0000
committerBenny Prijono <bennylp@teluu.com>2006-11-24 16:33:27 +0000
commit9df0661307525bf591ff3c67b367919c246501ec (patch)
tree98c74b1844f908ac67364dca57e3b375d3684dc2 /pjmedia
parentaa004d3d07f30ab98734485f434bfaf6cbdb592b (diff)
Fixed speex logging to use PJLIB's log, because a GUI application doesn't have stderr
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@827 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r--pjmedia/src/pjmedia-codec/speex/config.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia-codec/speex/config.h b/pjmedia/src/pjmedia-codec/speex/config.h
index 9f6f5c44..31e03376 100644
--- a/pjmedia/src/pjmedia-codec/speex/config.h
+++ b/pjmedia/src/pjmedia-codec/speex/config.h
@@ -1,5 +1,5 @@
-#include <pj/types.h>
+#include <pj/log.h>
/* Check if we need to use the fixed point version */
#if !defined(PJ_HAS_FLOATING_POINT) || PJ_HAS_FLOATING_POINT==0
@@ -19,3 +19,16 @@
# pragma warning(disable: 4305) // truncation from 'const double ' to 'float '
# pragma warning(disable: 4701) // local variable used without initialized
#endif
+
+/*
+ * Override miscellaneous Speex functions.
+ */
+#define OVERRIDE_SPEEX_ERROR
+#define speex_error(str) PJ_LOG(4,("speex", "error: %s", str))
+
+#define OVERRIDE_SPEEX_WARNING
+#define speex_warning(str) PJ_LOG(5,("speex", "warning: %s", str))
+
+#define OVERRIDE_SPEEX_WARNING_INT
+#define speex_warning_int(str,val) PJ_LOG(5,("speex", "warning: %s: %d", str, val))
+