]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fixed the last of the warning messages in MSVC in mod_exosip.c. There are now no...
authorMichael Jerris <mike@jerris.com>
Sun, 20 Nov 2005 18:17:35 +0000 (18:17 +0000)
committerMichael Jerris <mike@jerris.com>
Sun, 20 Nov 2005 18:17:35 +0000 (18:17 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@63 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/mod_exosip/mod_exosip.c

index 6beda2d9809cc4759b5537bb940ce2cf65034f4b..8e54c9ce3f7f9d4716a54e0888ea0557e0799f55 100644 (file)
@@ -571,7 +571,7 @@ static switch_status exosip_read_frame(switch_core_session *session, switch_fram
                                frames = (tech_pvt->read_frame.datalen / bytes);
                                samples = frames * tech_pvt->read_codec.implementation->samples_per_frame;
                                ms = frames * tech_pvt->read_codec.implementation->microseconds_per_frame;
-                               tech_pvt->timestamp_recv += samples;
+                               tech_pvt->timestamp_recv += (int32_t)samples;
                                break;
                        }
                        
@@ -636,7 +636,7 @@ static switch_status exosip_write_frame(switch_core_session *session, switch_fra
 
        if (switch_test_flag(tech_pvt, TFLAG_USING_CODEC)) {
                bytes = tech_pvt->read_codec.implementation->encoded_bytes_per_frame;
-               frames = (frame->datalen / bytes);
+               frames = ((int)frame->datalen / bytes);
                samples = frames * tech_pvt->read_codec.implementation->samples_per_frame;
                ms = frames * tech_pvt->read_codec.implementation->microseconds_per_frame / 1000;
        } else {
@@ -647,7 +647,7 @@ static switch_status exosip_write_frame(switch_core_session *session, switch_fra
        //printf("%s %s->%s send %d bytes %d samples in %d frames taking up %d ms ts=%d\n", switch_channel_get_name(channel), tech_pvt->local_sdp_audio_ip, tech_pvt->remote_sdp_audio_ip, frame->datalen, samples, frames, ms, tech_pvt->timestamp_send);
 
 
-       jrtp4c_write(tech_pvt->rtp_session, frame->data, frame->datalen, samples);
+       jrtp4c_write(tech_pvt->rtp_session, frame->data, (int)frame->datalen, samples);
        tech_pvt->timestamp_send += (int)samples;
 
        switch_clear_flag(tech_pvt, TFLAG_WRITING);