summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2007-11-28 12:52:42 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2007-11-28 12:52:42 +0000
commitc437e3b4e26da36b7977ef6ba2b310f007f37efa (patch)
tree5a45fd4b4ecb18decaa6fd095884f7434e4f009a /tools
parentddb7cc27631861f4d4d4fba4ed6273579cac3e32 (diff)
gst/: Fix wrong order of args in GST_CLOCK_DIFF() usage.
Original commit message from CVS: * gst/gstdebugutils.c: * gst/gstinfo.c: Fix wrong order of args in GST_CLOCK_DIFF() usage. * tools/gst-launch.c: Use new API to get elapsed time.
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-launch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gst-launch.c b/tools/gst-launch.c
index cedc6244ad..01c92ecfba 100644
--- a/tools/gst-launch.c
+++ b/tools/gst-launch.c
@@ -747,7 +747,7 @@ main (int argc, char *argv[])
if (caught_error) {
fprintf (stderr, _("ERROR: pipeline doesn't want to preroll.\n"));
} else {
- GTimeVal tfthen, tfnow;
+ GstClockTime tfthen, tfnow;
GstClockTimeDiff diff;
fprintf (stderr, _("Setting pipeline to PLAYING ...\n"));
@@ -773,11 +773,11 @@ main (int argc, char *argv[])
goto end;
}
- g_get_current_time (&tfthen);
+ GST_GET_TIMESTAMP (tfthen);
caught_error = event_loop (pipeline, TRUE, GST_STATE_PLAYING);
- g_get_current_time (&tfnow);
+ GST_GET_TIMESTAMP (tfnow);
- diff = GST_TIMEVAL_TO_TIME (tfnow) - GST_TIMEVAL_TO_TIME (tfthen);
+ diff = GST_CLOCK_DIFF (tfthen, tfnow);
g_print (_("Execution ended after %" G_GUINT64_FORMAT " ns.\n"), diff);
}