ges: base-xml-formatter: Don't pass non-GObject pointers to GST_DEBUG_OBJECT

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4443>
This commit is contained in:
Sebastian Dröge 2023-04-18 13:03:00 +03:00 committed by GStreamer Marge Bot
parent acb913a878
commit 63a4d8bb54

View file

@ -479,11 +479,12 @@ _add_all_groups (GESFormatter * self)
lchild = lchild->next) { lchild = lchild->next) {
child = g_hash_table_lookup (priv->containers, lchild->data); child = g_hash_table_lookup (priv->containers, lchild->data);
GST_DEBUG_OBJECT (tmp->data, "Adding %s child %" GST_PTR_FORMAT " %s", GST_DEBUG_OBJECT (pgroup->group, "Adding %s child %" GST_PTR_FORMAT " %s",
(const gchar *) lchild->data, child, (const gchar *) lchild->data, child,
GES_TIMELINE_ELEMENT_NAME (child)); GES_TIMELINE_ELEMENT_NAME (child));
if (!ges_container_add (GES_CONTAINER (pgroup->group), child)) { if (!ges_container_add (GES_CONTAINER (pgroup->group), child)) {
GST_ERROR ("%" GES_FORMAT " could not add child %p while" GST_ERROR_OBJECT (pgroup->group,
"%" GES_FORMAT " could not add child %p while"
" reloading, this should never happen", GES_ARGS (pgroup->group), " reloading, this should never happen", GES_ARGS (pgroup->group),
child); child);
} }