]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
windows build tweaks
authorMichael Jerris <mike@jerris.com>
Mon, 26 Nov 2007 23:46:03 +0000 (23:46 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 26 Nov 2007 23:46:03 +0000 (23:46 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6400 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_module_interfaces.h
src/mod/applications/mod_voicemail/mod_voicemail.c
src/switch_ivr_play_say.c

index 40a870ce40c5e61ee54d20399a6498d7c795e1a4..4af805f116b6f8c508986d87d4c174531c445cee 100644 (file)
@@ -270,7 +270,7 @@ struct switch_file_handle {
        /*! 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 */
index 68b1996478cd9a5a0ee83e732218654941f329e5..f5e6ad77af68425cee14cef931e067d1e258d6c2 100644 (file)
@@ -804,7 +804,7 @@ typedef enum {
 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;
index d7304b7b70828381ee330a99a1ab00462189b0ec..54dbce6cdf46d64c31192a666006422653bdce27 100644 (file)
@@ -554,8 +554,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se
                }
 
                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);