mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-13 11:56:35 +00:00
info: include element name for event-src if it is a pad
Pad names alone are not unique/helpful as a information about the source of an event. Therefore inlcude the element name if the event-src is a pad.
This commit is contained in:
parent
16d96f71da
commit
cffb31238a
1 changed files with 12 additions and 5 deletions
|
@ -705,11 +705,18 @@ gst_debug_print_object (gpointer ptr)
|
||||||
s = g_strdup ("(NULL)");
|
s = g_strdup ("(NULL)");
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = g_strdup_printf ("%s event from '%s' at time %"
|
if (event->src && GST_IS_PAD (event->src)) {
|
||||||
GST_TIME_FORMAT ": %s",
|
ret = g_strdup_printf ("%s event from '%s:%s' at time %"
|
||||||
GST_EVENT_TYPE_NAME (event), (event->src != NULL) ?
|
GST_TIME_FORMAT ": %s",
|
||||||
GST_OBJECT_NAME (event->src) : "(NULL)",
|
GST_EVENT_TYPE_NAME (event),
|
||||||
GST_TIME_ARGS (event->timestamp), s);
|
GST_DEBUG_PAD_NAME (event->src), GST_TIME_ARGS (event->timestamp), s);
|
||||||
|
} else {
|
||||||
|
ret = g_strdup_printf ("%s event from '%s' at time %"
|
||||||
|
GST_TIME_FORMAT ": %s",
|
||||||
|
GST_EVENT_TYPE_NAME (event), (event->src != NULL) ?
|
||||||
|
GST_OBJECT_NAME (event->src) : "(NULL)",
|
||||||
|
GST_TIME_ARGS (event->timestamp), s);
|
||||||
|
}
|
||||||
g_free (s);
|
g_free (s);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue