From 57792e66ace878a0592db75d5efe8dcc109245e1 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 4 Nov 2008 15:52:09 +0000 Subject: [PATCH] tools/gst-launch.c: Print the message seqnums. Original commit message from CVS: * tools/gst-launch.c: (event_loop): Print the message seqnums. --- ChangeLog | 5 +++++ tools/gst-launch.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 39c435713a..d4686282c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-04 Wim Taymans + + * tools/gst-launch.c: (event_loop): + Print the message seqnums. + 2008-11-04 Andy Wingo * gst/gstutils.c (gst_util_seqnum_next): Refactor for clarity. diff --git a/tools/gst-launch.c b/tools/gst-launch.c index 7fe0ee9d2c..0bc91d2810 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -388,10 +388,14 @@ event_loop (GstElement * pipeline, gboolean blocking, GstState target_state) /* check if we need to dump messages to the console */ if (messages) { const GstStructure *s; + guint32 seqnum; + + seqnum = gst_message_get_seqnum (message); s = gst_message_get_structure (message); - g_print (_("Got Message from element \"%s\" (%s): "), + g_print (_("Got Message #%" G_GUINT32_FORMAT + " from element \"%s\" (%s): "), seqnum, GST_STR_NULL (GST_ELEMENT_NAME (GST_MESSAGE_SRC (message))), gst_message_type_get_name (GST_MESSAGE_TYPE (message))); if (s) {