From d1f07374c3bf7c97ea3adece98dd6f9eee258dd9 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 5 Apr 2004 13:34:33 +0000 Subject: [PATCH] adding Ronald's timestamp debug defines Original commit message from CVS: adding Ronald's timestamp debug defines --- ChangeLog | 4 ++++ gst/gstinfo.h | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 53fa755..dc15c12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2004-04-05 Thomas Vander Stichele + * gst/gstinfo.h: adding Ronald's timestamp debugging defines + +2004-04-05 Thomas Vander Stichele + * testsuite/elements/Makefile.am: disable test until it stops breaking make distcheck diff --git a/gst/gstinfo.h b/gst/gstinfo.h index 7f76ce2..fd2ecc1 100644 --- a/gst/gstinfo.h +++ b/gst/gstinfo.h @@ -521,6 +521,14 @@ G_CONST_RETURN gchar* void gst_debug_print_stack_trace (void); +/* timestamp debugging macros */ +#define GST_TIME_FORMAT "%u:%02u:%02u:%09u" +#define GST_TIME_ARGS(t) \ + (guint) (t / (GST_SECOND * 60 * 60)), \ + (guint) ((t / (GST_SECOND * 60)) % 60), \ + (guint) ((t / GST_SECOND) % 60), \ + (guint) (t % GST_SECOND) + G_END_DECLS #endif /* __GSTINFO_H__ */ -- 2.7.4