From 63a4d8bb543a6b1bfe1a04ef49f2d934b0deb4e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 18 Apr 2023 13:03:00 +0300 Subject: [PATCH] ges: base-xml-formatter: Don't pass non-GObject pointers to GST_DEBUG_OBJECT Part-of: --- .../gst-editing-services/ges/ges-base-xml-formatter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-editing-services/ges/ges-base-xml-formatter.c b/subprojects/gst-editing-services/ges/ges-base-xml-formatter.c index 6120e30ee6..3e99f4fe65 100644 --- a/subprojects/gst-editing-services/ges/ges-base-xml-formatter.c +++ b/subprojects/gst-editing-services/ges/ges-base-xml-formatter.c @@ -479,11 +479,12 @@ _add_all_groups (GESFormatter * self) lchild = lchild->next) { 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, GES_TIMELINE_ELEMENT_NAME (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), child); }