tools/gst-launch.c: Print INFO messages.
authorWim Taymans <wim.taymans@gmail.com>
Thu, 8 Mar 2007 16:26:44 +0000 (16:26 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Thu, 8 Mar 2007 16:26:44 +0000 (16:26 +0000)
Original commit message from CVS:
* tools/gst-launch.c: (event_loop):
Print INFO messages.

ChangeLog
tools/gst-launch.c

index 4581cfa..de069b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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:
        (gst_base_transform_sink_eventfunc),
        (gst_base_transform_handle_buffer), (gst_base_transform_chain),
index 66b04c9..dd8a832 100644 (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;