aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/voip_calls.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-03-03 21:44:41 +0000
committerGuy Harris <guy@alum.mit.edu>2010-03-03 21:44:41 +0000
commit4e6821c3aaaba3e684fe446f219cabf27b33f6f2 (patch)
tree396672d662c0aec6cfab4d9485b8b633e8599e31 /gtk/voip_calls.c
parentb38e0bb589449f7461a01c1edb4a24b68c9f1cb1 (diff)
Cast the result of the subtraction.
svn path=/trunk/; revision=32102
Diffstat (limited to 'gtk/voip_calls.c')
-rw-r--r--gtk/voip_calls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/voip_calls.c b/gtk/voip_calls.c
index b071d35a8d..8760721b36 100644
--- a/gtk/voip_calls.c
+++ b/gtk/voip_calls.c
@@ -606,7 +606,7 @@ static void RTP_packet_draw(void *prs _U_)
gai = voip_calls_graph_list->data;
/* if RTP was already in the Graph, just update the comment information */
if (rtp_listinfo->first_frame_num == gai->frame_num){
- duration = (guint32)nstime_to_msec(&rtp_listinfo->stop_rel) - nstime_to_msec(&rtp_listinfo->start_rel);
+ duration = (guint32)(nstime_to_msec(&rtp_listinfo->stop_rel) - nstime_to_msec(&rtp_listinfo->start_rel));
g_free(gai->comment);
gai->comment = g_strdup_printf("%s Num packets:%u Duration:%u.%03us SSRC:0x%X",
(rtp_listinfo->is_srtp)?"SRTP":"RTP", rtp_listinfo->npackets,
@@ -627,7 +627,7 @@ static void RTP_packet_draw(void *prs _U_)
COPY_ADDRESS(&(new_gai->dst_addr),&(rtp_listinfo->dest_addr));
new_gai->port_src = rtp_listinfo->src_port;
new_gai->port_dst = rtp_listinfo->dest_port;
- duration = (guint32)nstime_to_msec(&rtp_listinfo->stop_rel) - nstime_to_msec(&rtp_listinfo->start_rel);
+ duration = (guint32)(nstime_to_msec(&rtp_listinfo->stop_rel) - nstime_to_msec(&rtp_listinfo->start_rel));
new_gai->frame_label = g_strdup_printf("%s (%s) %s", (rtp_listinfo->is_srtp)?"SRTP":"RTP", rtp_listinfo->pt_str, (rtp_listinfo->rtp_event == -1)?"":val_to_str(rtp_listinfo->rtp_event, rtp_event_type_values, "Unknown RTP Event"));
new_gai->comment = g_strdup_printf("%s Num packets:%u Duration:%u.%03us SSRC:0x%X",
(rtp_listinfo->is_srtp)?"SRTP":"RTP", rtp_listinfo->npackets,