From 06fcb64c7748b45ad228e3586b5d450c579831be Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 6 Mar 2006 14:34:49 +0000 Subject: [PATCH] gst/gstclock.h: Show GST_CLOCK_TIME_NONE as 99:99:99.999999999 Original commit message from CVS: * gst/gstclock.h: Show GST_CLOCK_TIME_NONE as 99:99:99.999999999 --- ChangeLog | 5 +++++ gst/gstclock.h | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2332cb9b90..ea7fe5aa57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-06 Thomas Vander Stichele + + * gst/gstclock.h: + Show GST_CLOCK_TIME_NONE as 99:99:99.999999999 + 2006-03-05 Tim-Philipp Müller * libs/gst/base/gstbasetransform.c: diff --git a/gst/gstclock.h b/gst/gstclock.h index b84457777d..3e8b0757e6 100644 --- a/gst/gstclock.h +++ b/gst/gstclock.h @@ -177,10 +177,14 @@ G_STMT_START { \ * Format @t for the GST_TIME_FORMAT format string. */ #define GST_TIME_ARGS(t) \ - (guint) (((GstClockTime)(t)) / (GST_SECOND * 60 * 60)), \ - (guint) ((((GstClockTime)(t)) / (GST_SECOND * 60)) % 60), \ - (guint) ((((GstClockTime)(t)) / GST_SECOND) % 60), \ - (guint) (((GstClockTime)(t)) % GST_SECOND) + GST_CLOCK_TIME_IS_VALID (t) ? \ + (guint) (((GstClockTime)(t)) / (GST_SECOND * 60 * 60)) : 99, \ + GST_CLOCK_TIME_IS_VALID (t) ? \ + (guint) ((((GstClockTime)(t)) / (GST_SECOND * 60)) % 60) : 99, \ + GST_CLOCK_TIME_IS_VALID (t) ? \ + (guint) ((((GstClockTime)(t)) / GST_SECOND) % 60) : 99, \ + GST_CLOCK_TIME_IS_VALID (t) ? \ + (guint) (((GstClockTime)(t)) % GST_SECOND) : 999999999 /** * GST_CLOCK_ENTRY_TRACE_NAME: -- GitLab