summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2007-03-08 16:26:44 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-03-08 16:26:44 +0000
commit0c16a9954e441b054074e2612f1dee85810e67bd (patch)
tree4bdc82ed1699a93f5916716b62363c91ad4f2a44 /tools
parentecc37d93897836a044c4694c6856d8621ef98599 (diff)
tools/gst-launch.c: Print INFO messages.
Original commit message from CVS: * tools/gst-launch.c: (event_loop): Print INFO messages.
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-launch.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/gst-launch.c b/tools/gst-launch.c
index 66b04c9039..dd8a832463 100644
--- a/tools/gst-launch.c
+++ b/tools/gst-launch.c
@@ -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;