summaryrefslogtreecommitdiff
path: root/mediainfo/src/mi-info.vala
diff options
context:
space:
mode:
Diffstat (limited to 'mediainfo/src/mi-info.vala')
-rw-r--r--mediainfo/src/mi-info.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/mediainfo/src/mi-info.vala b/mediainfo/src/mi-info.vala
index 0a9207d..633c859 100644
--- a/mediainfo/src/mi-info.vala
+++ b/mediainfo/src/mi-info.vala
@@ -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),