mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
seek: fix position reporting
This commit is contained in:
parent
582417e031
commit
574ea62ae9
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue