summaryrefslogtreecommitdiff
path: root/playback
diff options
context:
space:
mode:
authorBrijesh Singh <brijesh.ksingh@gmail.com>2015-07-29 22:52:28 -0500
committerSebastian Dröge <sebastian@centricular.com>2015-07-30 15:54:16 +0300
commita18cefb73c2bd2e63d0ba004f8703d1bf811907b (patch)
tree12423eb06f63e4efba731df174b39d8ae784dcd9 /playback
parenta8bb7e0199d7fced6b73220f9719bc7e60eb6202 (diff)
playback/player: gtk-play: fix elapsed and remain time label
If elapsed or remain time is greater than 60 mins then add hours in label text.
Diffstat (limited to 'playback')
-rw-r--r--playback/player/gtk/gtk-play.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/playback/player/gtk/gtk-play.c b/playback/player/gtk/gtk-play.c
index 1d0491d..e327606 100644
--- a/playback/player/gtk/gtk-play.c
+++ b/playback/player/gtk/gtk-play.c
@@ -1526,7 +1526,7 @@ update_position_label (GtkLabel * label, guint64 seconds)
seconds -= mins * 60;
if (hrs)
- data = g_strdup_printf ("%02d:%02d", hrs, mins);
+ data = g_strdup_printf ("%d:%02d:%02ld", hrs, mins, seconds);
else
data = g_strdup_printf ("%02d:%02ld", mins, seconds);