[Freeswitch-trunk] [commit] r6689 - freeswitch/trunk/src/mod/formats/mod_local_stream

Freeswitch SVN mikej at freeswitch.org
Tue Dec 11 20:00:04 EST 2007


Author: mikej
Date: Tue Dec 11 20:00:03 2007
New Revision: 6689

Modified:
   freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c

Log:
use 1/8 or 1/4 of the ram... 

Modified: freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c
==============================================================================
--- freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c	(original)
+++ freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c	Tue Dec 11 20:00:03 2007
@@ -100,7 +100,7 @@
 
 		while(RUNNING && (fname = switch_dir_next_file(source->dir_handle, file_buf, sizeof(file_buf)))) {
 			switch_size_t olen;
-			uint8_t *abuf[SWITCH_RECOMMENDED_BUFFER_SIZE] =  {0};
+			uint8_t abuf[SWITCH_RECOMMENDED_BUFFER_SIZE] =  {0};
 
 			snprintf(path_buf, sizeof(path_buf), "%s%s%s", source->location, SWITCH_PATH_SEPARATOR, fname);
 			if (switch_stristr(".loc", path_buf)) {



More information about the Freeswitch-trunk mailing list