mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
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:
parent
ecc37d9389
commit
0c16a9954e
2 changed files with 19 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue