summaryrefslogtreecommitdiff
path: root/gst/gstdebugutils.c
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2007-12-11 20:23:58 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2007-12-11 20:23:58 +0000
commit428a4e9669aaa24686bd3fdf052f37a81c4c95da (patch)
treed1cc86ef01df22d66b4d9da838a4938c6eaf3b21 /gst/gstdebugutils.c
parent9aca6f57c3877e5ef43ea0cb846862700aa9a954 (diff)
downloadgstreamer-428a4e9669aaa24686bd3fdf052f37a81c4c95da.tar.gz
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.
Diffstat (limited to 'gst/gstdebugutils.c')
-rw-r--r--gst/gstdebugutils.c6
1 files changed, 3 insertions, 3 deletions
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);