mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
tools/gst-launch.c: Print the message seqnums.
Original commit message from CVS: * tools/gst-launch.c: (event_loop): Print the message seqnums.
This commit is contained in:
parent
1f1d642981
commit
57792e66ac
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-11-04 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
* tools/gst-launch.c: (event_loop):
|
||||
Print the message seqnums.
|
||||
|
||||
2008-11-04 Andy Wingo <wingo@pobox.com>
|
||||
|
||||
* gst/gstutils.c (gst_util_seqnum_next): Refactor for clarity.
|
||||
|
|
|
@ -388,10 +388,14 @@ event_loop (GstElement * pipeline, gboolean blocking, GstState target_state)
|
|||
/* check if we need to dump messages to the console */
|
||||
if (messages) {
|
||||
const GstStructure *s;
|
||||
guint32 seqnum;
|
||||
|
||||
seqnum = gst_message_get_seqnum (message);
|
||||
|
||||
s = gst_message_get_structure (message);
|
||||
|
||||
g_print (_("Got Message from element \"%s\" (%s): "),
|
||||
g_print (_("Got Message #%" G_GUINT32_FORMAT
|
||||
" from element \"%s\" (%s): "), seqnum,
|
||||
GST_STR_NULL (GST_ELEMENT_NAME (GST_MESSAGE_SRC (message))),
|
||||
gst_message_type_get_name (GST_MESSAGE_TYPE (message)));
|
||||
if (s) {
|
||||
|
|
Loading…
Reference in a new issue