From a5d8bce39573ac6ebcc30ddc68a32e1d78ddaddf Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Thu, 3 May 2012 18:07:37 +0300 Subject: [PATCH] playback: Display subseconds as proper milliseconds instead of the last 2 digits of the milliseconds --- tests/examples/playback/playback-test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/examples/playback/playback-test.c b/tests/examples/playback/playback-test.c index f495b6d538..5f09acd09a 100644 --- a/tests/examples/playback/playback-test.c +++ b/tests/examples/playback/playback-test.c @@ -311,10 +311,10 @@ format_value (GtkScale * scale, gdouble value, PlaybackApp * app) real = value * app->duration / N_GRAD; seconds = (gint64) real / GST_SECOND; - subseconds = (gint64) real / (GST_SECOND / N_GRAD); + subseconds = (gint64) real / (GST_MSECOND); - return g_strdup_printf ("%02" G_GINT64_FORMAT ":%02" G_GINT64_FORMAT ":%02" - G_GINT64_FORMAT, seconds / 60, seconds % 60, subseconds % 100); + return g_strdup_printf ("%02" G_GINT64_FORMAT ":%02" G_GINT64_FORMAT ":%03" + G_GINT64_FORMAT, seconds / 60, seconds % 60, subseconds % 1000); } static gchar *