[Freeswitch-svn] [commit] r12008 - freeswitch/trunk/src/mod/codecs/mod_speex

FreeSWITCH SVN mrene at freeswitch.org
Fri Feb 13 17:04:28 PST 2009


Author: mrene
Date: Fri Feb 13 19:04:28 2009
New Revision: 12008

Log:
mod_speex also needs libspeexdsp

Modified:
   freeswitch/trunk/src/mod/codecs/mod_speex/Makefile
   freeswitch/trunk/src/mod/codecs/mod_speex/mod_speex.c

Modified: freeswitch/trunk/src/mod/codecs/mod_speex/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_speex/Makefile	(original)
+++ freeswitch/trunk/src/mod/codecs/mod_speex/Makefile	Fri Feb 13 19:04:28 2009
@@ -2,11 +2,16 @@
 
 SPEEX_DIR=$(BASE)/libs/speex
 SPEEXLA=$(SPEEX_DIR)/libspeex/libspeex.la
+SPEEXDSPLA=$(SPEEX_DIR)/libspeex/libspeexdsp.la
 
 LOCAL_CFLAGS=-I$(SPEEX_DIR)/include
-LOCAL_LIBADD=$(SPEEXLA)
+LOCAL_LIBADD=$(SPEEXLA) $(SPEEXDSPLA)
 include $(BASE)/build/modmake.rules
 
 $(SPEEXLA): $(SPEEX_DIR) $(SPEEX_DIR)/.update
 	cd $(SPEEX_DIR)/libspeex && $(MAKE)
 	$(TOUCH_TARGET)
+	
+$(SPEEXDSPLA): $(SPEEX_DIR) $(SPEEX_DIR)/.update
+	cd $(SPEEX_DIR)/libspeex && $(MAKE)
+	$(TOUCH_TARGET)
\ No newline at end of file

Modified: freeswitch/trunk/src/mod/codecs/mod_speex/mod_speex.c
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_speex/mod_speex.c	(original)
+++ freeswitch/trunk/src/mod/codecs/mod_speex/mod_speex.c	Fri Feb 13 19:04:28 2009
@@ -74,7 +74,7 @@
 	int decoder_mode;
 };
 
-static switch_status_t switch_speex_init(switch_codec_t *codec, switch_codec_flag_t flags, const switch_codec_settings_t *codec_settings)
+switch_status_t switch_speex_init(switch_codec_t *codec, switch_codec_flag_t flags, const switch_codec_settings_t *codec_settings)
 {
 	struct speex_context *context = NULL;
 	int encoding, decoding;



More information about the Freeswitch-svn mailing list