summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>2015-01-13 22:11:34 +0100
committerStefan Sauer <ensonic@users.sf.net>2015-08-26 22:33:59 +0200
commitd9e58f60f0d174e711383d9dae08bb60dc2fe721 (patch)
treef27a08ccda1497c9e94d0a6516e2f1e8680776d6
parent0df22830e37e5a73e33d0481239b7ceb63040a7d (diff)
tracer: Use GST_TIME_ARGS when printing with GST_TIME_FORMAT.
-rw-r--r--plugins/tracers/gstlog.c32
1 files changed, 18 insertions, 14 deletions
diff --git a/plugins/tracers/gstlog.c b/plugins/tracers/gstlog.c
index 172535f0c..5b5e52e5f 100644
--- a/plugins/tracers/gstlog.c
+++ b/plugins/tracers/gstlog.c
@@ -68,7 +68,7 @@ do_push_buffer_pre (GstTracer * self, guint64 ts, GstPad * pad,
{
do_log (GST_CAT_BUFFER,
"%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", buffer=%" GST_PTR_FORMAT,
- ts, pad, buffer);
+ GST_TIME_ARGS (ts), pad, buffer);
}
static void
@@ -76,7 +76,8 @@ do_push_buffer_post (GstTracer * self, guint64 ts, GstPad * pad,
GstFlowReturn res)
{
do_log (GST_CAT_BUFFER,
- "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", res=%d", ts, pad, res);
+ "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", res=%d",
+ GST_TIME_ARGS (ts), pad, res);
}
static void
@@ -84,7 +85,8 @@ do_push_buffer_list_pre (GstTracer * self, guint64 ts, GstPad * pad,
GstBufferList * list)
{
do_log (GST_CAT_BUFFER_LIST,
- "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", list=%p", ts, pad, list);
+ "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", list=%p",
+ GST_TIME_ARGS (ts), pad, list);
}
static void
@@ -92,7 +94,8 @@ do_push_buffer_list_post (GstTracer * self, guint64 ts, GstPad * pad,
GstFlowReturn res)
{
do_log (GST_CAT_BUFFER_LIST,
- "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", res=%d", ts, pad, res);
+ "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", res=%d",
+ GST_TIME_ARGS (ts), pad, res);
}
static void
@@ -101,7 +104,7 @@ do_pull_range_pre (GstTracer * self, guint64 ts, GstPad * pad, guint64 offset,
{
do_log (GST_CAT_BUFFER,
"%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", offset=%" G_GUINT64_FORMAT
- ", size=%u", ts, pad, offset, size);
+ ", size=%u", GST_TIME_ARGS (ts), pad, offset, size);
}
static void
@@ -110,7 +113,7 @@ do_pull_range_post (GstTracer * self, guint64 ts, GstPad * pad,
{
do_log (GST_CAT_BUFFER,
"%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", buffer=%" GST_PTR_FORMAT
- ", res=%d", ts, pad, buffer, res);
+ ", res=%d", GST_TIME_ARGS (ts), pad, buffer, res);
}
static void
@@ -118,14 +121,15 @@ do_push_event_pre (GstTracer * self, guint64 ts, GstPad * pad, GstEvent * event)
{
do_log (GST_CAT_EVENT,
"%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", event=%" GST_PTR_FORMAT,
- ts, pad, event);
+ GST_TIME_ARGS (ts), pad, event);
}
static void
do_push_event_post (GstTracer * self, guint64 ts, GstPad * pad, gboolean res)
{
do_log (GST_CAT_EVENT,
- "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", res=%d", ts, pad, res);
+ "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", res=%d",
+ GST_TIME_ARGS (ts), pad, res);
}
static void
@@ -134,7 +138,7 @@ do_post_message_pre (GstTracer * self, guint64 ts, GstElement * elem,
{
do_log (GST_CAT_EVENT,
"%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", message=%"
- GST_PTR_FORMAT, ts, elem, msg);
+ GST_PTR_FORMAT, GST_TIME_ARGS (ts), elem, msg);
}
static void
@@ -142,8 +146,8 @@ do_post_message_post (GstTracer * self, guint64 ts, GstElement * elem,
gboolean res)
{
do_log (GST_CAT_EVENT,
- "%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", res=%d", ts, elem,
- res);
+ "%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", res=%d",
+ GST_TIME_ARGS (ts), elem, res);
}
static void
@@ -151,15 +155,15 @@ do_query_pre (GstTracer * self, guint64 ts, GstElement * elem, GstQuery * query)
{
do_log (GST_CAT_QUERY,
"%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", query=%"
- GST_PTR_FORMAT, ts, elem, query);
+ GST_PTR_FORMAT, GST_TIME_ARGS (ts), elem, query);
}
static void
do_query_post (GstTracer * self, guint64 ts, GstElement * elem, gboolean res)
{
do_log (GST_CAT_QUERY,
- "%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", res=%d", ts, elem,
- res);
+ "%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", res=%d",
+ GST_TIME_ARGS (ts), elem, res);
}