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.
This commit is contained in:
Brijesh Singh 2015-07-29 22:52:28 -05:00 committed by Sebastian Dröge
parent a8bb7e0199
commit a18cefb73c

View file

@ -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);