summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2011-12-06 14:55:15 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2011-12-06 14:55:57 +0100
commitc8909ab05944be6e3591e9bb3048f901864cabc1 (patch)
treeb709064b8c6a62a30737191102b65be625bf9556
parentb7b84671baa4785d5ac3d6454b01e5f7d31fb065 (diff)
fakesink: Make event/buffer verbose output consistent with identity
-rw-r--r--plugins/elements/gstfakesink.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/elements/gstfakesink.c b/plugins/elements/gstfakesink.c
index 976297e8c..202d07b86 100644
--- a/plugins/elements/gstfakesink.c
+++ b/plugins/elements/gstfakesink.c
@@ -409,7 +409,8 @@ gst_fake_sink_event (GstBaseSink * bsink, GstEvent * event)
gst_event_parse_sink_message (event, &msg);
sstr = gst_structure_to_string (msg->structure);
sink->last_message =
- g_strdup_printf ("message ******* M (type: %d, %s) %p",
+ g_strdup_printf ("message ******* (%s:%s) M (type: %d, %s) %p",
+ GST_DEBUG_PAD_NAME (GST_BASE_SINK_CAST (sink)->sinkpad),
GST_MESSAGE_TYPE (msg), sstr, msg);
gst_message_unref (msg);
} else {
@@ -420,7 +421,8 @@ gst_fake_sink_event (GstBaseSink * bsink, GstEvent * event)
}
sink->last_message =
- g_strdup_printf ("event ******* E (type: %d, %s) %p",
+ g_strdup_printf ("event ******* (%s:%s) E (type: %d, %s) %p",
+ GST_DEBUG_PAD_NAME (GST_BASE_SINK_CAST (sink)->sinkpad),
GST_EVENT_TYPE (event), sstr, event);
}
g_free (sstr);
@@ -521,9 +523,11 @@ gst_fake_sink_render (GstBaseSink * bsink, GstBuffer * buf)
}
sink->last_message =
- g_strdup_printf ("chain ******* < (%5d bytes, timestamp: %s"
+ g_strdup_printf ("chain ******* (%s:%s) (%u bytes, timestamp: %s"
", duration: %s, offset: %" G_GINT64_FORMAT ", offset_end: %"
- G_GINT64_FORMAT ", flags: %d %s) %p", GST_BUFFER_SIZE (buf), ts_str,
+ G_GINT64_FORMAT ", flags: %d %s) %p",
+ GST_DEBUG_PAD_NAME (GST_BASE_SINK_CAST (sink)->sinkpad),
+ GST_BUFFER_SIZE (buf), ts_str,
dur_str, GST_BUFFER_OFFSET (buf), GST_BUFFER_OFFSET_END (buf),
GST_MINI_OBJECT_CAST (buf)->flags, flag_str, buf);
GST_OBJECT_UNLOCK (sink);