[Freeswitch-trunk] [commit] r6400 - in freeswitch/trunk/src: . include mod/applications/mod_voicemail

Freeswitch SVN mikej at freeswitch.org
Mon Nov 26 18:46:03 EST 2007


Author: mikej
Date: Mon Nov 26 18:46:03 2007
New Revision: 6400

Modified:
   freeswitch/trunk/src/include/switch_module_interfaces.h
   freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c
   freeswitch/trunk/src/switch_ivr_play_say.c

Log:
windows build tweaks

Modified: freeswitch/trunk/src/include/switch_module_interfaces.h
==============================================================================
--- freeswitch/trunk/src/include/switch_module_interfaces.h	(original)
+++ freeswitch/trunk/src/include/switch_module_interfaces.h	Mon Nov 26 18:46:03 2007
@@ -270,7 +270,7 @@
 	/*! is the file seekable */
 	int seekable;
 	/*! the sample count of the file */
-	unsigned int sample_count;
+	switch_size_t sample_count;
 	/*! the speed of the file playback */
 	int speed;
 	/*! the handle's memory pool */

Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	Mon Nov 26 18:46:03 2007
@@ -804,7 +804,7 @@
 static uint32_t DEFAULT_DIR_PERMS = SWITCH_FPROT_UREAD | SWITCH_FPROT_UWRITE | SWITCH_FPROT_UEXECUTE | SWITCH_FPROT_GREAD | SWITCH_FPROT_GEXECUTE;
 
 
-static switch_status_t create_file(switch_core_session_t *session, vm_profile_t *profile, char *macro_name, char *file_path, uint32_t *message_len)
+static switch_status_t create_file(switch_core_session_t *session, vm_profile_t *profile, char *macro_name, char *file_path, switch_size_t *message_len)
 {
     switch_channel_t *channel;
     switch_status_t status = SWITCH_STATUS_SUCCESS;

Modified: freeswitch/trunk/src/switch_ivr_play_say.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_play_say.c	(original)
+++ freeswitch/trunk/src/switch_ivr_play_say.c	Mon Nov 26 18:46:03 2007
@@ -554,8 +554,8 @@
 		}
 
 		if (!switch_test_flag(fh, SWITCH_FILE_PAUSE)) {
-			len = (switch_size_t) read_frame->datalen / 2;
 			int16_t *data = read_frame->data;
+			len = (switch_size_t) read_frame->datalen / 2;
 			
 			if (resampler) {
 				resampler->from_len = switch_short_to_float(read_frame->data, resampler->from, (int) len);



More information about the Freeswitch-trunk mailing list