tools/gst-launch.c: Print INFO messages.

Original commit message from CVS:
* tools/gst-launch.c: (event_loop):
Print INFO messages.
This commit is contained in:
Wim Taymans 2007-03-08 16:26:44 +00:00
parent ecc37d9389
commit 0c16a9954e
2 changed files with 19 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-03-08 Wim Taymans <wim@fluendo.com>
* tools/gst-launch.c: (event_loop):
Print INFO messages.
2007-03-08 Wim Taymans <wim@fluendo.com>
* libs/gst/base/gstbasetransform.c:

View file

@ -430,6 +430,20 @@ event_loop (GstElement * pipeline, gboolean blocking, GstState target_state)
gst_tag_list_free (tags);
}
break;
case GST_MESSAGE_INFO:{
GError *gerror;
gchar *debug;
gchar *name = gst_object_get_path_string (GST_MESSAGE_SRC (message));
gst_message_parse_info (message, &gerror, &debug);
if (debug) {
g_print (_("INFO:\n%s\n"), debug);
}
g_error_free (gerror);
g_free (debug);
g_free (name);
break;
}
case GST_MESSAGE_WARNING:{
GError *gerror;
gchar *debug;