mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
mi-info: handle streams with unknown duration
This commit is contained in:
parent
e1464c2a6e
commit
6c4b51dd5c
1 changed files with 3 additions and 0 deletions
|
@ -923,6 +923,9 @@ public class MediaInfo.Info : Box
|
|||
}
|
||||
|
||||
private string format_time(ClockTime t) {
|
||||
if (t == Gst.CLOCK_TIME_NONE)
|
||||
return "unknown";
|
||||
|
||||
return "%u:%02u:%02u.%09u".printf (
|
||||
(uint) (t / (SECOND * 60 * 60)),
|
||||
(uint) ((t / (SECOND * 60)) % 60),
|
||||
|
|
Loading…
Reference in a new issue