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

FreeSWITCH SVN anthm at freeswitch.org
Mon Jan 26 10:05:00 PST 2009


Author: anthm
Date: Mon Jan 26 12:05:00 2009
New Revision: 11491

Log:
bang it all, MODAPP-205

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	Mon Jan 26 12:05:00 2009
@@ -395,7 +395,7 @@
 
 			while((rlen = switch_buffer_inuse(fh->pre_buffer))) {
 				blen = switch_buffer_read(fh->pre_buffer, fh->pre_buffer_data, fh->pre_buffer_datalen);
-				if (asis) blen /= 2;
+				if (!asis) blen /= 2;
 				if (fh->channels) blen /= fh->channels;
 				if (fh->file_interface->file_write(fh, fh->pre_buffer_data, &blen) != SWITCH_STATUS_SUCCESS) {
 					break;



More information about the Freeswitch-svn mailing list