From 86ffdd7e6c479aa5bb7eda34e2b04026995da052 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sun, 20 Nov 2005 18:17:35 +0000 Subject: [PATCH] fixed the last of the warning messages in MSVC in mod_exosip.c. There are now no warning messages at all in all of the freeswitch code. The dependency libs are still another story. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@63 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/mod_exosip/mod_exosip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod/mod_exosip/mod_exosip.c b/src/mod/mod_exosip/mod_exosip.c index 6beda2d980..8e54c9ce3f 100644 --- a/src/mod/mod_exosip/mod_exosip.c +++ b/src/mod/mod_exosip/mod_exosip.c @@ -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);