summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2010-10-05 16:36:24 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2010-10-05 16:36:24 +0200
commit574ea62ae96125bb5f557d4b4468d97089f6d12d (patch)
tree2addb1aed816190050113e593a2c56ae893e681e /tests
parent582417e0319506be2c0722a1f555b5f523773f5a (diff)
seek: fix position reporting
Diffstat (limited to 'tests')
-rw-r--r--tests/examples/seek/seek.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c
index 528995919..64ef02265 100644
--- a/tests/examples/seek/seek.c
+++ b/tests/examples/seek/seek.c
@@ -1013,9 +1013,9 @@ format_value (GtkScale * scale, gdouble value)
gint64 seconds;
gint64 subseconds;
- real = value * duration / 100;
+ real = value * duration / N_GRAD;
seconds = (gint64) real / GST_SECOND;
- subseconds = (gint64) real / (GST_SECOND / 100);
+ subseconds = (gint64) real / (GST_SECOND / N_GRAD);
return g_strdup_printf ("%02" G_GINT64_FORMAT ":%02" G_GINT64_FORMAT ":%02"
G_GINT64_FORMAT, seconds / 60, seconds % 60, subseconds % 100);