[Bug 679850] Add function to pretty-print durations

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Feb 14 16:21:29 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=679850

--- Comment #8 from Bastien Nocera <bugzilla at hadess.net> ---
(In reply to Sebastian Dröge (slomo) from comment #7)
> gst_strdup_printf("%" GST_TIME_FORMAT, GST_TIME_ARGS(time)) maybe? What kind
> of "configuration" would you want for the output? (The Rust ClockTime
> "pretty-printer" allows to configure the number of sub-second digits but
> nothing else, would that be what you need? Also omitting seconds, minutes?)

For totem, it would be:
- being able to show the elapsed time as well as the remaining time
- omitting (days?) hours, minutes if not present in either elapsed or remaining
(eg. a 1h30 minutes film would always show the hours in both strings)
- i18n

I don't need sub-second precision in the UI, but the code should make sure to
take fractional seconds into account when showing both elapsed and remaining.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list