mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
identity: also debug dts/pts
This commit is contained in:
parent
59893e38ca
commit
812afd3a22
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue