From a18cefb73c2bd2e63d0ba004f8703d1bf811907b Mon Sep 17 00:00:00 2001 From: Brijesh Singh Date: Wed, 29 Jul 2015 22:52:28 -0500 Subject: [PATCH] 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. --- playback/player/gtk/gtk-play.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playback/player/gtk/gtk-play.c b/playback/player/gtk/gtk-play.c index 1d0491d286..e327606250 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);