[Freeswitch-svn] [commit] r13243 - freeswitch/trunk/src

FreeSWITCH SVN brian at freeswitch.org
Wed May 6 10:34:29 PDT 2009


Author: brian
Date: Wed May  6 12:34:29 2009
New Revision: 13243

Log:
 remove unused code

Modified:
   freeswitch/trunk/src/switch_core_file.c

Modified: freeswitch/trunk/src/switch_core_file.c
==============================================================================
--- freeswitch/trunk/src/switch_core_file.c	(original)
+++ freeswitch/trunk/src/switch_core_file.c	Wed May  6 12:34:29 2009
@@ -122,12 +122,6 @@
 		}
 	}
 
-	if (0 && fh->pre_buffer_datalen) {
-		//switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Prebuffering %d bytes\n", (int)fh->pre_buffer_datalen);
-		switch_buffer_create_dynamic(&fh->pre_buffer, fh->pre_buffer_datalen * fh->channels, fh->pre_buffer_datalen * fh->channels / 2, 0);
-		fh->pre_buffer_data = switch_core_alloc(fh->memory_pool, fh->pre_buffer_datalen * fh->channels);
-	}
-
 	if (fh->channels > 1 && (flags & SWITCH_FILE_FLAG_READ)) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "File has %d channels, muxing to mono will occur.\n", fh->channels);
 	}



More information about the Freeswitch-svn mailing list