mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
tools/gst-launch.c: Better message printout.
Original commit message from CVS: * tools/gst-launch.c: (event_loop): Better message printout.
This commit is contained in:
parent
65006292ce
commit
c2691f6c80
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-10-08 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
* tools/gst-launch.c: (event_loop):
|
||||||
|
Better message printout.
|
||||||
|
|
||||||
2005-10-08 Wim Taymans <wim@fluendo.com>
|
2005-10-08 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/gstbin.c: (gst_bin_child_proxy_get_child_by_index),
|
* gst/gstbin.c: (gst_bin_child_proxy_get_child_by_index),
|
||||||
|
|
|
@ -377,14 +377,18 @@ event_loop (GstElement * pipeline, gboolean blocking)
|
||||||
const GstStructure *s;
|
const GstStructure *s;
|
||||||
|
|
||||||
s = gst_message_get_structure (message);
|
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) {
|
if (s) {
|
||||||
gchar *sstr;
|
gchar *sstr;
|
||||||
|
|
||||||
sstr = gst_structure_to_string (s);
|
sstr = gst_structure_to_string (s);
|
||||||
g_print ("%s\n", sstr);
|
g_print ("%s\n", sstr);
|
||||||
g_free (sstr);
|
g_free (sstr);
|
||||||
|
} else {
|
||||||
|
g_print ("no message details\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue