mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
playback: Display subseconds as proper milliseconds instead of the last 2 digits of the milliseconds
This commit is contained in:
parent
7e00aca2eb
commit
a5d8bce395
1 changed files with 3 additions and 3 deletions
|
@ -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 *
|
||||
|
|
Loading…
Reference in a new issue