mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
tracer: Use GST_TIME_ARGS when printing with GST_TIME_FORMAT.
This commit is contained in:
parent
26af78b71f
commit
a9aab3c6c7
1 changed files with 18 additions and 14 deletions
|
@ -68,7 +68,7 @@ do_push_buffer_pre (GstTracer * self, guint64 ts, GstPad * pad,
|
||||||
{
|
{
|
||||||
do_log (GST_CAT_BUFFER,
|
do_log (GST_CAT_BUFFER,
|
||||||
"%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", buffer=%" GST_PTR_FORMAT,
|
"%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", buffer=%" GST_PTR_FORMAT,
|
||||||
ts, pad, buffer);
|
GST_TIME_ARGS (ts), pad, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -76,7 +76,8 @@ do_push_buffer_post (GstTracer * self, guint64 ts, GstPad * pad,
|
||||||
GstFlowReturn res)
|
GstFlowReturn res)
|
||||||
{
|
{
|
||||||
do_log (GST_CAT_BUFFER,
|
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
|
static void
|
||||||
|
@ -84,7 +85,8 @@ do_push_buffer_list_pre (GstTracer * self, guint64 ts, GstPad * pad,
|
||||||
GstBufferList * list)
|
GstBufferList * list)
|
||||||
{
|
{
|
||||||
do_log (GST_CAT_BUFFER_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
|
static void
|
||||||
|
@ -92,7 +94,8 @@ do_push_buffer_list_post (GstTracer * self, guint64 ts, GstPad * pad,
|
||||||
GstFlowReturn res)
|
GstFlowReturn res)
|
||||||
{
|
{
|
||||||
do_log (GST_CAT_BUFFER_LIST,
|
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
|
static void
|
||||||
|
@ -101,7 +104,7 @@ do_pull_range_pre (GstTracer * self, guint64 ts, GstPad * pad, guint64 offset,
|
||||||
{
|
{
|
||||||
do_log (GST_CAT_BUFFER,
|
do_log (GST_CAT_BUFFER,
|
||||||
"%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", offset=%" G_GUINT64_FORMAT
|
"%" 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
|
static void
|
||||||
|
@ -110,7 +113,7 @@ do_pull_range_post (GstTracer * self, guint64 ts, GstPad * pad,
|
||||||
{
|
{
|
||||||
do_log (GST_CAT_BUFFER,
|
do_log (GST_CAT_BUFFER,
|
||||||
"%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", buffer=%" GST_PTR_FORMAT
|
"%" 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
|
static void
|
||||||
|
@ -118,14 +121,15 @@ do_push_event_pre (GstTracer * self, guint64 ts, GstPad * pad, GstEvent * event)
|
||||||
{
|
{
|
||||||
do_log (GST_CAT_EVENT,
|
do_log (GST_CAT_EVENT,
|
||||||
"%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", event=%" GST_PTR_FORMAT,
|
"%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", event=%" GST_PTR_FORMAT,
|
||||||
ts, pad, event);
|
GST_TIME_ARGS (ts), pad, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
do_push_event_post (GstTracer * self, guint64 ts, GstPad * pad, gboolean res)
|
do_push_event_post (GstTracer * self, guint64 ts, GstPad * pad, gboolean res)
|
||||||
{
|
{
|
||||||
do_log (GST_CAT_EVENT,
|
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
|
static void
|
||||||
|
@ -134,7 +138,7 @@ do_post_message_pre (GstTracer * self, guint64 ts, GstElement * elem,
|
||||||
{
|
{
|
||||||
do_log (GST_CAT_EVENT,
|
do_log (GST_CAT_EVENT,
|
||||||
"%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", message=%"
|
"%" 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
|
static void
|
||||||
|
@ -142,8 +146,8 @@ do_post_message_post (GstTracer * self, guint64 ts, GstElement * elem,
|
||||||
gboolean res)
|
gboolean res)
|
||||||
{
|
{
|
||||||
do_log (GST_CAT_EVENT,
|
do_log (GST_CAT_EVENT,
|
||||||
"%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", res=%d", ts, elem,
|
"%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", res=%d",
|
||||||
res);
|
GST_TIME_ARGS (ts), elem, res);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -151,15 +155,15 @@ do_query_pre (GstTracer * self, guint64 ts, GstElement * elem, GstQuery * query)
|
||||||
{
|
{
|
||||||
do_log (GST_CAT_QUERY,
|
do_log (GST_CAT_QUERY,
|
||||||
"%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", 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
|
static void
|
||||||
do_query_post (GstTracer * self, guint64 ts, GstElement * elem, gboolean res)
|
do_query_post (GstTracer * self, guint64 ts, GstElement * elem, gboolean res)
|
||||||
{
|
{
|
||||||
do_log (GST_CAT_QUERY,
|
do_log (GST_CAT_QUERY,
|
||||||
"%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", res=%d", ts, elem,
|
"%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", res=%d",
|
||||||
res);
|
GST_TIME_ARGS (ts), elem, res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue