[rhythmbox] header: cast to correct type when calculating elapsed time (bug #600995)
- From: Jonathan Matthew <jmatthew src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rhythmbox] header: cast to correct type when calculating elapsed time (bug #600995)
- Date: Sun, 8 Nov 2009 04:33:59 +0000 (UTC)
commit e1c547646fd6200b354c8dec9af8a6226ad3a55f
Author: Andy Owen <andy-gnome ultra-premium com>
Date: Sun Nov 8 14:23:48 2009 +1000
header: cast to correct type when calculating elapsed time (bug #600995)
A guint isn't enough to hold the elapsed time now that it's in
nanoseconds.
widgets/rb-header.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/widgets/rb-header.c b/widgets/rb-header.c
index 55c764d..915b071 100644
--- a/widgets/rb-header.c
+++ b/widgets/rb-header.c
@@ -639,7 +639,7 @@ slider_moved_callback (GtkWidget *widget,
}
progress = gtk_adjustment_get_value (header->priv->adjustment);
- header->priv->elapsed_time = (guint) ((progress+0.5) * RB_PLAYER_SECOND);
+ header->priv->elapsed_time = (gint64) ((progress+0.5) * RB_PLAYER_SECOND);
rb_header_update_elapsed (header);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]