From 428a4e9669aaa24686bd3fdf052f37a81c4c95da Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 11 Dec 2007 20:23:58 +0000 Subject: Change GST_GET_TIMESTAMP into gst_util_get_timestamp and replace all uses as we don't have HAVE_POSIX_TIMERS in publi... Original commit message from CVS: * docs/gst/gstreamer-sections.txt: * gst/gstclock.h: * gst/gstdebugutils.c: * gst/gstinfo.c: * gst/gstutils.c: * gst/gstutils.h: * libs/gst/base/gstbasesink.c: * tools/gst-launch.c: Change GST_GET_TIMESTAMP into gst_util_get_timestamp and replace all uses as we don't have HAVE_POSIX_TIMERS in public headers. Thanks Tim for spotting. --- gst/gstdebugutils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gst/gstdebugutils.c') diff --git a/gst/gstdebugutils.c b/gst/gstdebugutils.c index 0927eeebfc..71d383ebd6 100644 --- a/gst/gstdebugutils.c +++ b/gst/gstdebugutils.c @@ -496,7 +496,7 @@ _gst_debug_bin_to_dot_file_with_ts (GstBin * bin, GstDebugGraphDetails details, const gchar * file_name) { gchar *ts_file_name = NULL; - GstClockTime now, elapsed; + GstClockTime elapsed; g_return_if_fail (GST_IS_BIN (bin)); @@ -507,8 +507,8 @@ _gst_debug_bin_to_dot_file_with_ts (GstBin * bin, GstDebugGraphDetails details, } /* add timestamp */ - GST_GET_TIMESTAMP (now); - elapsed = GST_CLOCK_DIFF (_priv_gst_info_start_time, now); + elapsed = GST_CLOCK_DIFF (_priv_gst_info_start_time, + gst_util_get_timestamp ()); ts_file_name = g_strdup_printf ("%" GST_TIME_FORMAT "-%s", GST_TIME_ARGS (elapsed), file_name); -- cgit v1.2.1