diff options
author | sfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-12-29 00:29:05 +0000 |
---|---|---|
committer | sfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-12-29 00:29:05 +0000 |
commit | 85608615b7fef4323a9382388f06b3f1f9fc7899 (patch) | |
tree | 7a4b1245dd47384e74e6e5e51b4bd02a6ad887cc | |
parent | 404c4eb70d7db71e115678c9b32acd57549f2d9b (diff) |
Fix Windows build, which complained about possible loss of data converting
from a double to a time_t. I removed nstime_to_secs() and grab the
seconds portion of the nstime (which is a time_t), since that's all the
precision needed in the code right now anyway.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35293 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | gtk/rtp_player.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/rtp_player.c b/gtk/rtp_player.c index 82a60b766f..d32561bc6c 100644 --- a/gtk/rtp_player.c +++ b/gtk/rtp_player.c @@ -1377,7 +1377,7 @@ static void channel_draw(rtp_channel_info_t* rci) rci->draw_area->allocation.height-HEIGHT_TIME_LABEL+4); if(GTK_TOGGLE_BUTTON(cb_view_as_time_of_day)->active) { - seconds = nstime_to_sec(&rci->start_time_abs) + i * MULT / SAMPLE_RATE; + seconds = rci->start_time_abs.secs + i * MULT / SAMPLE_RATE; timestamp = localtime(&seconds); g_snprintf(label_string, MAX_TIME_LABEL, "%02d:%02d:%02d", timestamp->tm_hour, timestamp->tm_min, timestamp->tm_sec); } else { |