From c2691f6c8084f3a25d30e522d0dcf9e1309aef14 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 8 Oct 2005 09:38:19 +0000 Subject: [PATCH] tools/gst-launch.c: Better message printout. Original commit message from CVS: * tools/gst-launch.c: (event_loop): Better message printout. --- ChangeLog | 5 +++++ tools/gst-launch.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index afc953da89..a4524752ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-10-08 Wim Taymans + + * tools/gst-launch.c: (event_loop): + Better message printout. + 2005-10-08 Wim Taymans * gst/gstbin.c: (gst_bin_child_proxy_get_child_by_index), diff --git a/tools/gst-launch.c b/tools/gst-launch.c index 301351f532..6f2d42dfe7 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -377,14 +377,18 @@ event_loop (GstElement * pipeline, gboolean blocking) const GstStructure *s; s = gst_message_get_structure (message); - g_print (_("Got Message from element \"%s\"\n"), - GST_STR_NULL (GST_ELEMENT_NAME (GST_MESSAGE_SRC (message)))); + + g_print (_("Got Message from element \"%s\" (%s): "), + GST_STR_NULL (GST_ELEMENT_NAME (GST_MESSAGE_SRC (message))), + gst_message_type_get_name (GST_MESSAGE_TYPE (message))); if (s) { gchar *sstr; sstr = gst_structure_to_string (s); g_print ("%s\n", sstr); g_free (sstr); + } else { + g_print ("no message details\n"); } }