From: Wim Taymans Date: Tue, 21 Feb 2012 11:43:18 +0000 (+0100) Subject: identity: also debug dts/pts X-Git-Tag: RELEASE-0.11.3~138 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=812afd3a22712d580457555a17d3e6ab04772198;p=platform%2Fupstream%2Fgstreamer.git identity: also debug dts/pts --- diff --git a/plugins/elements/gstidentity.c b/plugins/elements/gstidentity.c index eb2f6b5..3bb50a6 100644 --- a/plugins/elements/gstidentity.c +++ b/plugins/elements/gstidentity.c @@ -505,7 +505,7 @@ static void gst_identity_update_last_message_for_buffer (GstIdentity * identity, const gchar * action, GstBuffer * buf, gsize size) { - gchar ts_str[64], dur_str[64]; + gchar dts_str[64], pts_str[64], dur_str[64]; gchar flag_str[100]; GST_OBJECT_LOCK (identity); @@ -531,11 +531,12 @@ gst_identity_update_last_message_for_buffer (GstIdentity * identity, g_free (identity->last_message); identity->last_message = g_strdup_printf ("%s ******* (%s:%s) " - "(%" G_GSIZE_FORMAT " bytes, timestamp: %s, duration: %s, offset: %" + "(%" G_GSIZE_FORMAT " bytes, dts: %s, pts:%s, duration: %s, offset: %" G_GINT64_FORMAT ", " "offset_end: % " G_GINT64_FORMAT ", flags: %d %s) %p", action, GST_DEBUG_PAD_NAME (GST_BASE_TRANSFORM_CAST (identity)->sinkpad), size, - print_pretty_time (ts_str, sizeof (ts_str), GST_BUFFER_TIMESTAMP (buf)), + print_pretty_time (dts_str, sizeof (dts_str), GST_BUFFER_DTS (buf)), + print_pretty_time (pts_str, sizeof (pts_str), GST_BUFFER_PTS (buf)), print_pretty_time (dur_str, sizeof (dur_str), GST_BUFFER_DURATION (buf)), GST_BUFFER_OFFSET (buf), GST_BUFFER_OFFSET_END (buf), GST_BUFFER_FLAGS (buf), flag_str, buf);